浏览代码

fix:校验是否导入成绩

caozixuan 1 年之前
父节点
当前提交
82e09787e1

+ 1 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/PrintCommonServiceImpl.java

@@ -553,7 +553,7 @@ public class PrintCommonServiceImpl implements PrintCommonService {
         QueryWrapper<TCFinalScore> tcFinalScoreQueryWrapper = new QueryWrapper<>();
         tcFinalScoreQueryWrapper.lambda().eq(TCFinalScore::getCultureProgramId, cultureProgramId)
                 .eq(TCFinalScore::getCourseId, courseId);
-        if (tcUsualScoreService.count(tcUsualScoreQueryWrapper) > 0){
+        if (tcFinalScoreService.count(tcFinalScoreQueryWrapper) > 0){
             throw ExceptionResultEnum.ERROR.exception("已导入期末成绩,无法删除");
         }
     }