From 00a61f60c697d6059c00682b6242b4376bc493ab Mon Sep 17 00:00:00 2001 From: panbaolin <123456> Date: Fri, 12 Jan 2024 15:07:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:1.=E4=BF=AE=E6=94=B9Sample=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=BC=82=E5=B8=B8=E6=97=B6=E9=92=88=E5=AF=B9=E8=BF=9D?= =?UTF-8?q?=E5=8F=8D=E5=94=AF=E4=B8=80=E6=80=A7=E7=BA=A6=E6=9D=9F=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/modules/spectrum/SamplephdSpectrum.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/SamplephdSpectrum.java b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/SamplephdSpectrum.java index 8cd0b4d4..3680d36f 100644 --- a/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/SamplephdSpectrum.java +++ b/jeecg-module-auto-process/src/main/java/org/jeecg/modules/spectrum/SamplephdSpectrum.java @@ -75,21 +75,20 @@ public class SamplephdSpectrum extends AbstractS_D_Q_G_SpectrumHandler { //异常返回文件名称用于报错日志 super.returnFileName.append(super.spectrumFile.getName()); + //修改状态为解析失败 + super.status = SampleStatus.FAIL.getValue(); if (e instanceof AnalyseException) { AnalyseException exception = (AnalyseException) e; if (exception.isDuplicateKeyException()) { ErrorLogManager.getInstance().write(new SpectrumErrorEvent(new Date(), ErrorType.INSERT_ERROR, super.spectrumFile.getName(), String.valueOf(this.sampleData.getSampleId()))); + }else{ + super.updateStatus(); } - //处理解析失败的文件 - super.handleParseingFailFile(e); } else { - //修改状态为解析失败 - super.status = SampleStatus.FAIL.getValue(); super.updateStatus(); - - //处理解析失败的文件 - super.handleParseingFailFile(e); } + //处理解析失败的文件 + super.handleParseingFailFile(e); throw e; }finally { if(Objects.nonNull(this.parsingProcessLog)){