wangliang 4 年之前
父節點
當前提交
aaa0273989

+ 1 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/templete/service/impl/TaskLogicServiceImpl.java

@@ -142,6 +142,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
             }
 
             BasicSchool basicSchool = cacheService.schoolCache(examPrintPlan.getSchoolId());
+            schoolId = Objects.isNull(schoolId) ? basicSchool.getId() : schoolId;
             BasicExamRule basicExamRule = basicExamRuleService.getBySchoolId(schoolId);
             if (Objects.isNull(basicExamRule)) {
                 throw ExceptionResultEnum.ERROR.exception("考务规则为空");