|
@@ -46,6 +46,7 @@ import org.apache.commons.codec.digest.DigestUtils;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.io.FileUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.commons.lang3.time.DateUtils;
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
@@ -2144,21 +2145,25 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
basicExamStudentParam.setExamPlace(examPlace);
|
|
|
basicExamStudentParam.setExamRoom(examRoom);
|
|
|
try {
|
|
|
- BasicExamStudent basicExamStudent = basicExamStudentService.editEntityHelp(basicExamStudentParam,basicExam,
|
|
|
- requestUser);
|
|
|
+ BasicExamStudent basicExamStudent = basicExamStudentService.editEntityHelp(basicExamStudentParam,
|
|
|
+ basicExam, requestUser);
|
|
|
// 考试课程下学号重复 后面的替换前面的
|
|
|
studentCodeObjMap.put(key, basicExamStudent);
|
|
|
} catch (Exception e) {
|
|
|
errorMsgList.add(e.getMessage());
|
|
|
}
|
|
|
-
|
|
|
- if (CollectionUtils.isNotEmpty(errorMsgList)) {
|
|
|
- basicExamStudentDto.setErrorMsg(basicExamStudentDto.getErrorMsg() + ";" + String.join(";", errorMsgList));
|
|
|
+ String excelAnalyzeError = basicExamStudentDto.getErrorMsg();
|
|
|
+ if (SystemConstant.strNotNull(excelAnalyzeError)) {
|
|
|
+ exceptionInteger.getAndIncrement();
|
|
|
+ if (CollectionUtils.isNotEmpty(errorMsgList)) {
|
|
|
+ basicExamStudentDto.setErrorMsg(excelAnalyzeError + ";" + String.join(";", errorMsgList));
|
|
|
+ }
|
|
|
+ } else if (CollectionUtils.isNotEmpty(errorMsgList)) {
|
|
|
exceptionInteger.getAndIncrement();
|
|
|
+ basicExamStudentDto.setErrorMsg(String.join(";", errorMsgList));
|
|
|
} else {
|
|
|
successInteger.getAndIncrement();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if (basicExamStudentDtoList.stream().anyMatch(e -> SystemConstant.strNotNull(e.getErrorMsg()))) {
|