diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/ParsingProcessLog.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/ParsingProcessLog.java index a0dbbbcb..446af1d2 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/ParsingProcessLog.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/ParsingProcessLog.java @@ -172,7 +172,7 @@ public class ParsingProcessLog extends AbstractAutoLogOrReport{ this.setDetAndGasIdLog(); //获取analyseResult BgAnalyseResult analyseResult = sample_B_Analysis.analyseResult; - if (StringUtils.isNotBlank(analyseResult.error_log) && !analyseResult.error_log.equalsIgnoreCase("no error.")) { + if (Objects.nonNull(analyseResult) && !analyseResult.analyse_flag) { analysisResultFlag = true; } //如果分析结果错误 diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_B_Analysis.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_B_Analysis.java index dac87c66..31b3681a 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_B_Analysis.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/Sample_B_Analysis.java @@ -227,6 +227,7 @@ public class Sample_B_Analysis implements BlockConstant { System.out.println(analyseResult); this.analyseResult = analyseResult; if(Objects.isNull(analyseResult) || !analyseResult.analyse_flag){ + ErrorLogManager.getInstance().write(new SpectrumErrorEvent(new Date(), analyseResult.error_log, this.phdFileName)); throw new BAnalyseException("THE PHD file cannot be parsed:"+this.sampleFileFinalPath+","+this.gasFileFinalPath+","+this.detFileFinalPath); } }