|
@@ -505,19 +505,19 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
examDetailService.disposeExamStudentByExaminationExcel(dataList, userId);
|
|
examDetailService.disposeExamStudentByExaminationExcel(dataList, userId);
|
|
|
|
|
|
// TODO: 2021/4/13 调用检验接口 dataList按照schoolId,courseCode,paperNumber归集
|
|
// TODO: 2021/4/13 调用检验接口 dataList按照schoolId,courseCode,paperNumber归集
|
|
- List<Map<String, Object>> checkList = dataList.stream().flatMap(e -> {
|
|
|
|
- Map<String, Object> tmp = new HashMap<>();
|
|
|
|
- tmp.put("schoolId", e.get("schoolId"));
|
|
|
|
- tmp.put("courseCode", e.get("courseCode"));
|
|
|
|
- tmp.put("paperNumber", e.get("paperNumber"));
|
|
|
|
- return Stream.of(tmp);
|
|
|
|
- }).distinct().collect(Collectors.toList());
|
|
|
|
- for (Map<String, Object> stringObjectMap : checkList) {
|
|
|
|
- Long checkSchoolId = SystemConstant.convertIdToLong(String.valueOf(stringObjectMap.get("schoolId")));
|
|
|
|
- String checkCourseCode = String.valueOf(stringObjectMap.get("courseCode"));
|
|
|
|
- String checkPaperNumber = String.valueOf(stringObjectMap.get("paperNumber"));
|
|
|
|
- commonService.checkData(checkSchoolId, checkCourseCode, checkPaperNumber);
|
|
|
|
- }
|
|
|
|
|
|
+// List<Map<String, Object>> checkList = dataList.stream().flatMap(e -> {
|
|
|
|
+// Map<String, Object> tmp = new HashMap<>();
|
|
|
|
+// tmp.put("schoolId", e.get("schoolId"));
|
|
|
|
+// tmp.put("courseCode", e.get("courseCode"));
|
|
|
|
+// tmp.put("paperNumber", e.get("paperNumber"));
|
|
|
|
+// return Stream.of(tmp);
|
|
|
|
+// }).distinct().collect(Collectors.toList());
|
|
|
|
+// for (Map<String, Object> stringObjectMap : checkList) {
|
|
|
|
+// Long checkSchoolId = SystemConstant.convertIdToLong(String.valueOf(stringObjectMap.get("schoolId")));
|
|
|
|
+// String checkCourseCode = String.valueOf(stringObjectMap.get("courseCode"));
|
|
|
|
+// String checkPaperNumber = String.valueOf(stringObjectMap.get("paperNumber"));
|
|
|
|
+// commonService.checkData(checkSchoolId, checkCourseCode, checkPaperNumber);
|
|
|
|
+// }
|
|
map.put("dataCount",dataList.size());
|
|
map.put("dataCount",dataList.size());
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|