|
@@ -760,6 +760,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
Map<String, String> paperNumberWithCourseCodeInExcelMap = new HashMap<>();
|
|
|
// 试卷编号在考试下有多个命题任务map
|
|
|
Map<String, Integer> paperNumberWithExamTaskMap = new HashMap<>();
|
|
|
+ Map<String, String> paperNumberCoureseSequenceMap = new HashMap<>();
|
|
|
// 命题任务中试卷编号对应的课程代码map
|
|
|
Map<String, String> paperNumberWithCourseCodeInExamTaskMap = new HashMap<>();
|
|
|
|
|
@@ -771,6 +772,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
for (ExamTask examTask : examTaskList) {
|
|
|
String paperNumber = examTask.getPaperNumber();
|
|
|
String courseCode = examTask.getCourseCode();
|
|
|
+ String sequence = examTask.getSequence();
|
|
|
paperNumberWithCourseCodeInExamTaskMap.put(paperNumber, courseCode);
|
|
|
if (paperNumberWithExamTaskMap.containsKey(paperNumber)) {
|
|
|
int count = paperNumberWithExamTaskMap.get(paperNumber);
|
|
@@ -778,6 +780,8 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
} else {
|
|
|
paperNumberWithExamTaskMap.put(paperNumber, 1);
|
|
|
}
|
|
|
+
|
|
|
+ paperNumberCoureseSequenceMap.put(paperNumber, courseCode.concat(sequence));
|
|
|
}
|
|
|
|
|
|
// 从第三行开始为数据(第一行说明,第二行表头,第三行往后为数据)
|
|
@@ -867,7 +871,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
String courseCode = examinationImportDto.getCourseCode();
|
|
|
String courseName = examinationImportDto.getCourseName();
|
|
|
String paperNumber = examinationImportDto.getPaperNumber();
|
|
|
- String ticketNumber = examinationImportDto.getTicketNumber();
|
|
|
+// String ticketNumber = examinationImportDto.getTicketNumber();
|
|
|
|
|
|
|
|
|
if (!SystemConstant.isOneNull(courseCode, courseName)) {
|
|
@@ -888,14 +892,14 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
errorRowDate.add(String.format("文件中课程代码[%s]对应课程名称为[%s],课程管理中对应课程名称为[%s]", courseCode, courseName, basicName));
|
|
|
}
|
|
|
}
|
|
|
- if (!SystemConstant.isOneNull(ticketNumber)) {
|
|
|
- // 检验3 - 文件中考号有重复数据
|
|
|
- if (ticketNumberMap.containsKey(ticketNumber)) {
|
|
|
- errorRowDate.add("文件中考号[" + ticketNumber + "]有重复数据");
|
|
|
- } else {
|
|
|
- ticketNumberMap.put(ticketNumber, 1);
|
|
|
- }
|
|
|
- }
|
|
|
+// if (!SystemConstant.isOneNull(ticketNumber)) {
|
|
|
+// // 检验3 - 文件中考号有重复数据
|
|
|
+// if (ticketNumberMap.containsKey(ticketNumber)) {
|
|
|
+// errorRowDate.add("文件中考号[" + ticketNumber + "]有重复数据");
|
|
|
+// } else {
|
|
|
+// ticketNumberMap.put(ticketNumber, 1);
|
|
|
+// }
|
|
|
+// }
|
|
|
if (!SystemConstant.isOneNull(paperNumber, courseCode)) {
|
|
|
// 检验4 - 文件中试卷编号[%s]对应多个不同的课程代码[%s]
|
|
|
if (paperNumberWithCourseCodeInExcelMap.containsKey(paperNumber)) {
|
|
@@ -925,6 +929,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ examinationImportDto.setSequence(paperNumber);
|
|
|
examinationImportDto.setErrorMessage(errorRowDate.toString());
|
|
|
examinationImportDtoList.add(examinationImportDto);
|
|
|
}
|