|
@@ -108,6 +108,7 @@ public class ModuleDetailFacade extends ModuleDetailServiceImpl {
|
|
|
}
|
|
|
QuestionInfo addquestionInfo = null;
|
|
|
List<QuestionInfo> addQuestionInfoList = new ArrayList<>();
|
|
|
+ List<String> textExistList = new ArrayList<>();
|
|
|
//循环给questionId赋值,如果遇到赋值失败的则是没有questionID,执行添加
|
|
|
for (AddModuleDetailVO addModuleDetailVO:addModuleInfoVO.getModelDetils()) {
|
|
|
if (StringUtil.isNotEmpty(addModuleDetailVO.getText())){
|
|
@@ -124,7 +125,8 @@ public class ModuleDetailFacade extends ModuleDetailServiceImpl {
|
|
|
addquestionInfo.setType(addModuleInfoVO.getTextType());
|
|
|
addquestionInfo.setSubType(1);
|
|
|
addquestionInfo.setName(addModuleDetailVO.getText());
|
|
|
- if(!addQuestionInfoList.contains(addquestionInfo)){
|
|
|
+ if(!textExistList.contains(addModuleDetailVO.getText())){
|
|
|
+ textExistList.add(addModuleDetailVO.getText());
|
|
|
addQuestionInfoList.add(addquestionInfo);
|
|
|
}
|
|
|
}
|