|
@@ -86,32 +86,31 @@ public class PushLogicServiceImpl implements PushLogicService {
|
|
List<Map> students = stmmsUtils.getStudentScore(schoolId, examId, null, null, null, null, null, null, null, true, i, pageSize);
|
|
List<Map> students = stmmsUtils.getStudentScore(schoolId, examId, null, null, null, null, null, null, null, true, i, pageSize);
|
|
for (Map student : students) {
|
|
for (Map student : students) {
|
|
try {
|
|
try {
|
|
- Long orgId = null, clazzId = null, majorId = null;
|
|
|
|
|
|
+ Long orgId = null, clazzId = null;
|
|
|
|
+ String clazzName = "";
|
|
|
|
+ String majorName = "";
|
|
if (Objects.nonNull(student.get("studentCode")) && !Objects.equals("无", student.get("studentCode"))) {
|
|
if (Objects.nonNull(student.get("studentCode")) && !Objects.equals("无", student.get("studentCode"))) {
|
|
String studentCode = String.valueOf(student.get("studentCode"));
|
|
String studentCode = String.valueOf(student.get("studentCode"));
|
|
String subjectCode = String.valueOf(student.get("subjectCode"));
|
|
String subjectCode = String.valueOf(student.get("subjectCode"));
|
|
String examNumber = String.valueOf(student.get("examNumber"));
|
|
String examNumber = String.valueOf(student.get("examNumber"));
|
|
Long printPlanId = Long.valueOf(student.get("examCode").toString()); // 计划ID
|
|
Long printPlanId = Long.valueOf(student.get("examCode").toString()); // 计划ID
|
|
|
|
|
|
|
|
+ // 分布式印刷系统内部考生信息
|
|
List<Map> studentInfos = examStudentService.listStudentScoreSync(schoolId, studentCode, examNumber, subjectCode, printPlanId);
|
|
List<Map> studentInfos = examStudentService.listStudentScoreSync(schoolId, studentCode, examNumber, subjectCode, printPlanId);
|
|
if (studentInfos == null || studentInfos.size() == 0) {
|
|
if (studentInfos == null || studentInfos.size() == 0) {
|
|
throw ExceptionResultEnum.ERROR.exception("未找到此考生信息");
|
|
throw ExceptionResultEnum.ERROR.exception("未找到此考生信息");
|
|
}
|
|
}
|
|
- Map stuMap = studentInfos.get(0);
|
|
|
|
|
|
+ Map dpsPrintStuMap = studentInfos.get(0);
|
|
|
|
|
|
-// clazzId = stuMap.get("clazzId") == null || "".equals(stuMap.get("clazzId")) ? null : Long.parseLong(String.valueOf(stuMap.get("clazzId")));
|
|
|
|
-// if (clazzId != null) {
|
|
|
|
-// TeachClazz teachClazz = teachClazzService.getById(clazzId);
|
|
|
|
-// if (teachClazz == null) {
|
|
|
|
-// BasicClazz basicClazz = basicClazzService.getById(clazzId);
|
|
|
|
-// if (Objects.nonNull(basicClazz)) {
|
|
|
|
-// majorId = basicClazz.getMajorId();
|
|
|
|
-// BasicMajor basicMajor = basicMajorService.getById(majorId);
|
|
|
|
-// orgId = basicMajor.getBelongOrgId();
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ // 组装本系统内考生信息
|
|
|
|
+ clazzId = dpsPrintStuMap.get("clazzId") == null || "".equals(dpsPrintStuMap.get("clazzId")) ? null : Long.parseLong(String.valueOf(dpsPrintStuMap.get("clazzId")));
|
|
|
|
+ clazzName = String.valueOf(dpsPrintStuMap.get("clazzName"));
|
|
|
|
+ majorName = String.valueOf(dpsPrintStuMap.get("majorName"));
|
|
|
|
+ student.put("clazzId",clazzId);
|
|
|
|
+ student.put("clazzName",clazzName);
|
|
|
|
+ student.put("majorName",majorName);
|
|
}
|
|
}
|
|
|
|
+
|
|
student.put(SystemConstant.SCHOOL_ID, schoolId);
|
|
student.put(SystemConstant.SCHOOL_ID, schoolId);
|
|
student.put("semesterId", k);
|
|
student.put("semesterId", k);
|
|
student.put("orgId", orgId);
|
|
student.put("orgId", orgId);
|