|
@@ -350,8 +350,9 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
String errorLog = ""; //错误提示
|
|
|
String buffer = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
- int sort = 1;
|
|
|
+ Long sort = 1L;
|
|
|
try{
|
|
|
+ Long nowTime = DateUtils.getNowTime();
|
|
|
String path = file.getOriginalFilename();
|
|
|
if (path.endsWith(".doc")) {
|
|
|
throw new CustomException("不支持doc格式");
|
|
@@ -666,7 +667,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setImportNo(importNo);
|
|
|
bo.setPublishStatus(1);
|
|
|
bo.setBusinessList(businessList);
|
|
|
- bo.setImportSort(sort);
|
|
|
+ bo.setImportSort(sort+nowTime);
|
|
|
insertByAddBoImport(bo,i);
|
|
|
sort++;
|
|
|
|
|
@@ -699,8 +700,9 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
String errorLog = ""; //错误提示
|
|
|
String buffer = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
- int sort = 1;
|
|
|
+ Long sort = 1L;
|
|
|
try{
|
|
|
+ Long nowTime = DateUtils.getNowTime();
|
|
|
String path = file.getOriginalFilename();
|
|
|
if (path.endsWith(".doc")) {
|
|
|
throw new CustomException("不支持doc格式");
|
|
@@ -1007,7 +1009,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
bo.setImportNo(importNo);
|
|
|
bo.setPublishStatus(1);
|
|
|
bo.setBusinessList(businessList);
|
|
|
- bo.setImportSort(sort);
|
|
|
+ bo.setImportSort(sort+nowTime);
|
|
|
list.add(bo);
|
|
|
//清空数据
|
|
|
isOption = false;
|