Browse Source

成绩管理1对多

wangliang 7 tháng trước cách đây
mục cha
commit
186012f0d7

+ 1 - 1
teachcloud-obe/src/main/java/com/qmth/teachcloud/obe/service/impl/TCFinalScoreServiceImpl.java

@@ -391,7 +391,7 @@ public class TCFinalScoreServiceImpl extends ServiceImpl<TCFinalScoreMapper, TCF
                     }
                     paperStructDimensionResultList = SDFrame.read(paperStructDimensionResultList).sortDesc(Sorter.sortDescBy(PaperStructDimensionResult::getMainNumber).sortDesc(PaperStructDimensionResult::getMainNumber)).toLists();
                     TCPaperStruct tcPaperStruct = new TCPaperStruct(cultureProgramId, courseId, basicCourse.getCode(), basicCourse.getName(), paperNumber, JacksonUtil.parseJson(paperStructDimensionResultList),
-                            sysUser.getId(), examId, tcPaperStructDb.getPaperStructDimension());
+                            sysUser.getId(), examId, Objects.nonNull(tcPaperStructDb) ? tcPaperStructDb.getPaperStructDimension() : null);
                     tcPaperStructService.saveOrUpdate(tcPaperStruct);
                 }
             } else {