|
@@ -224,6 +224,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
String errorLog = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
int i=10;
|
|
|
+ Long nowTime = DateUtils.getNowTime();
|
|
|
List<QuestionImport> errorList = new ArrayList<>();
|
|
|
for (QuestionImport question : questionList) {
|
|
|
QuestionAddBo bo = new QuestionAddBo();
|
|
@@ -323,6 +324,8 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setCreateBy(operName);
|
|
|
bo.setImportNo(importNo);
|
|
|
bo.setPublishStatus(1);
|
|
|
+ bo.setImportSort(nowTime+i); //导入时间从小到大排
|
|
|
+ bo.setCreateTime(nowTime); //从大到小排
|
|
|
errorLog = insertByAddBoImport(bo,i);
|
|
|
i++;
|
|
|
}
|
|
@@ -668,6 +671,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setPublishStatus(1);
|
|
|
bo.setBusinessList(businessList);
|
|
|
bo.setImportSort(sort+nowTime);
|
|
|
+ bo.setCreateTime(nowTime);
|
|
|
insertByAddBoImport(bo,i);
|
|
|
sort++;
|
|
|
|
|
@@ -1010,6 +1014,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setPublishStatus(1);
|
|
|
bo.setBusinessList(businessList);
|
|
|
bo.setImportSort(sort+nowTime);
|
|
|
+ bo.setCreateTime(nowTime);
|
|
|
list.add(bo);
|
|
|
//清空数据
|
|
|
isOption = false;
|
|
@@ -1063,7 +1068,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
errorLog+=bo.getContent()+"-名称重复\n";
|
|
|
return errorLog;
|
|
|
}*/
|
|
|
- add.setCreateTime(DateUtils.getNowTime());
|
|
|
+ // add.setCreateTime(DateUtils.getNowTime());
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
boolean result = this.save(add);
|
|
|
if(bo.getBusinessList()!=null){
|