Kaynağa Gözat

虚警抑制

Gaokun Wang 3 ay önce
ebeveyn
işleme
1d67a5ddcd

+ 6 - 3
als-modules/agile-assurance/src/main/java/org/eco/als/service/impl/AlgorithmService.java

@@ -62,9 +62,6 @@ public class AlgorithmService implements IAlgorithmService {
     private IAirConfigurationService airConfigurationService;
     @Resource
     private ILifePredictionService lifePredictionService;
-
-    @Resource
-    private ITaskService taskService;
     @Resource
     private IQaHistoryService qaHistoryService;
     @Resource
@@ -147,6 +144,12 @@ public class AlgorithmService implements IAlgorithmService {
     @Transactional
     public void executeFalseAlarm(AlgorithmBo algorithmBo) {
         WarningBo warningBo = new WarningBo();
+        if (StrUtil.isNotBlank(algorithmBo.getSortieNo())) {
+            throw new BusinessException("架次号不能为空!");
+        }
+        if (ObjectUtil.isEmpty(algorithmBo.getOssId())) {
+            throw new BusinessException("OssId不能为空!");
+        }
         warningBo.setSortieNo(algorithmBo.getSortieNo());
         // 警告列表
         List<WarningVo> warningList = warningService.selectList(warningBo);