소스 검색

检定完善

xiongchao 3 년 전
부모
커밋
e2eefb6362
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      platform-service/src/main/java/com/platform/service/check/impl/CheckStandardServiceImpl.java

+ 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);