|
@@ -72,6 +72,8 @@ public class AlgorithmService implements IAlgorithmService {
|
|
|
private IFormulaService formulaService;
|
|
|
@Resource
|
|
|
private IDataImportService dataImportService;
|
|
|
+ @Resource
|
|
|
+ private IWarningResultService warningResultService;
|
|
|
|
|
|
@Value("${kgqa.ask-url}")
|
|
|
private String askUrl;
|
|
@@ -172,6 +174,13 @@ public class AlgorithmService implements IAlgorithmService {
|
|
|
FalseAlarmResultBo falseAlarmResultBo = FalseAlarmResultBo.builder().falseAlarmId(algorithmBo.getDataId()).code(el.getCode()).name(el.getName()).aircraftId(el.getAircraftId()).sortieNo(el.getSortieNo()).status(String.valueOf(result))
|
|
|
.build();
|
|
|
falseAlarmResultService.insert(falseAlarmResultBo);
|
|
|
+ WarningResultBo warningResultBo = WarningResultBo.builder()
|
|
|
+ .sortieNo(algorithmBo.getSortieNo())
|
|
|
+ .code(el.getCode())
|
|
|
+ .hmc(el.getCode()).resultContent(String.valueOf(result))
|
|
|
+ .aircraftId(algorithmBo.getAircraftId())
|
|
|
+ .name(el.getName()).build();
|
|
|
+ warningResultService.insert(warningResultBo);
|
|
|
});
|
|
|
DataImportVo dataImportVo = dataImportService.selectById(algorithmBo.getDataId());
|
|
|
DataImport dataImport = new DataImport();
|