|
@@ -131,7 +131,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Long insertByAddBo(QuestionAddBo bo) {
|
|
|
+ public Question insertByAddBo(QuestionAddBo bo) {
|
|
|
Question add = BeanUtil.toBean(bo, Question.class);
|
|
|
add.setCode(ServletUtils.getEncoded("TM"));
|
|
|
if(bo.getOptionsList()!=null){
|
|
@@ -152,7 +152,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
}
|
|
|
iQuestionBusinessService.saveBatch(coll);
|
|
|
}
|
|
|
- return add.getQuestionId();
|
|
|
+ return add;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -211,7 +211,6 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
if (Validator.isNull(questionList) || questionList.size() == 0) {
|
|
|
throw new CustomException("导入数据不能为空!");
|
|
|
}
|
|
|
-
|
|
|
String errorLog = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
int i=10;
|
|
@@ -283,7 +282,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setOptionsList(dealOptionsList(question));
|
|
|
bo.setCreateBy(operName);
|
|
|
bo.setImportNo(importNo);
|
|
|
- bo.setPublishStatus(0);
|
|
|
+ bo.setPublishStatus(1);
|
|
|
errorLog = insertByAddBoImport(bo,errorLog,i);
|
|
|
i++;
|
|
|
}
|