Browse Source

班级考核汇总导入bug修复

dzx 1 month ago
parent
commit
ed8fe49374

+ 3 - 1
src/main/java/com/xjrsoft/module/student/service/impl/BaseStudentAssessmentInspectionServiceImpl.java

@@ -1050,6 +1050,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
             List<BaseStudentAssessmentStudentRelation> childInsertList = new ArrayList<>();
             List<BaseStudentAssessmentClassRelation> child2InsertList = new ArrayList<>();
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
+            int sortCode = 1;
             for (ImportBaseStudentAssessmentInspectionDto dto : savedDataList) {
                 long id = IdUtil.getSnowflakeNextId();
                 BaseStudentAssessmentInspection data = new BaseStudentAssessmentInspection();
@@ -1098,8 +1099,9 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
                     BaseStudentAssessmentClassRelation children = new BaseStudentAssessmentClassRelation();
                     children.setBaseStudentAssessmentInspectionId(id);
                     children.setClassId(baseClass.getId());
+                    children.setSortCode(sortCode);
                     child2InsertList.add(children);
-
+                    sortCode ++;
                 }else if("个人".equals(dto.getAssessmentType())){
                     data.setAssessmentType("personal");
                     if(!studentMap.containsKey(dto.getCredentialNumber())){