Эх сурвалжийг харах

fix:考务数据导入学生创建判断逻辑bug更改

caozixuan 3 жил өмнө
parent
commit
fd1e27912a

+ 4 - 4
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/ExamDetailServiceImpl.java

@@ -648,6 +648,10 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
                     .eq(BasicStudent::getStudentCode, studentCode));
             if (Objects.nonNull(tmp)) {
                 basicStudentParams.setId(tmp.getId());
+                basicStudentParams.setCollegeId(tmp.getBelongOrgId());
+                basicStudentParams.setMajorId(tmp.getMajorId());
+                basicStudentParams.setClazzId(tmp.getClazzId());
+                basicStudentParams.setPhoneNumber(tmp.getPhoneNumber());
             }
             basicStudentParams.setStudentCode(studentCode);
             basicStudentParams.setStudentName(studentName);
@@ -656,10 +660,6 @@ public class ExamDetailServiceImpl extends ServiceImpl<ExamDetailMapper, ExamDet
                     .eq(BasicCampus::getSchoolId,schoolId)
                     .eq(BasicCampus::getCampusName,campusName))
                     .getId());
-            basicStudentParams.setCollegeId(tmp.getBelongOrgId());
-            basicStudentParams.setMajorId(tmp.getMajorId());
-            basicStudentParams.setClazzId(tmp.getClazzId());
-            basicStudentParams.setPhoneNumber(tmp.getPhoneNumber());
             basicStudentParamsList.add(basicStudentParams);
         }
         examStudentService.saveBatch(examStudentList);