瀏覽代碼

检定完善

xiongchao 3 年之前
父節點
當前提交
e2eefb6362

+ 3 - 0
platform-service/src/main/java/com/platform/service/check/impl/CheckStandardServiceImpl.java

@@ -264,6 +264,9 @@ public class CheckStandardServiceImpl extends BaseServiceImpl<CheckStandardMappe
         List<CheckStandardParam> paramList = paramMapper.selectByExample(weekend);
         checkStandard.setParamList(paramList);*/
 
+        if(checkStandard == null){
+            throw new BusinessException("保养标准已经删除,该任务无需执行,请删除该任务");
+        }
         Weekend<SysFile> weekendFile = new Weekend<>(SysFile.class);
         weekendFile.weekendCriteria().andEqualTo(SysFile::getTargetId, checkStandard.getId());
         List<SysFile> sysFiles = sysFileMapper.selectByExample(weekendFile);