|
@@ -648,14 +648,14 @@ public class FsCourseQuestionBankServiceImpl implements IFsCourseQuestionBankSer
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- FsUserCourseCategory category = categoryData.get(importDTO.getQuestionType().trim());
|
|
|
|
|
|
+ FsUserCourseCategory category = categoryData.get(importDTO.getQuestionType().trim()+"-0");
|
|
if (category != null) {
|
|
if (category != null) {
|
|
questionBank.setQuestionType(category.getCateId());
|
|
questionBank.setQuestionType(category.getCateId());
|
|
|
|
|
|
// 子分类
|
|
// 子分类
|
|
if (StringUtils.isNotBlank(importDTO.getQuestionSubTyp())) {
|
|
if (StringUtils.isNotBlank(importDTO.getQuestionSubTyp())) {
|
|
- FsUserCourseCategory subCategory = categoryData.get(importDTO.getQuestionSubTyp().trim());
|
|
|
|
- if (subCategory != null && Objects.equals(subCategory.getPid(), category.getCateId())) {
|
|
|
|
|
|
+ FsUserCourseCategory subCategory = categoryData.get(importDTO.getQuestionSubTyp().trim()+"-" + category.getCateId());
|
|
|
|
+ if (subCategory != null) {
|
|
questionBank.setQuestionSubType(subCategory.getCateId());
|
|
questionBank.setQuestionSubType(subCategory.getCateId());
|
|
}
|
|
}
|
|
}
|
|
}
|