diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java index 1358a0a7..6ef9ad0e 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/SpectrumAnalysisServiceImpl.java @@ -2926,7 +2926,6 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements spectrum_group.BgCalPara.bApplyNewCalicDetBg = analyseData.isDetBgData(); //判断是否勾选了qc spectrum_group.BgCalPara.bApplyNewCalicQc = analyseData.isQcData(); - betaDataFile.setBgPara(spectrum_group.BgCalPara); File sampleTmp = null; File gasTmp = null; File detTmp = null; @@ -2989,6 +2988,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements betaDataFile.setXeResultsSpectrumList(xeResultsSpectrumList); betaDataFile.setBProcessed(true); betaDataFile.setSaveAnalysisResult(true); + betaDataFile.setBgPara(spectrum_group.BgCalPara); } } else { xeMap.put("XeData", Collections.EMPTY_LIST); @@ -3120,7 +3120,6 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements spectrum_group.BgCalPara.bApplyNewCalicGasBg = analyseData.isGasBgData(); spectrum_group.BgCalPara.bApplyNewCalicDetBg = analyseData.isDetBgData(); spectrum_group.BgCalPara.bApplyNewCalicQc = analyseData.isQcData(); - sampleBetaData.setBgPara(spectrum_group.BgCalPara); File sampleTmp = null; File gasTmp = null; File detTmp = null; @@ -3136,15 +3135,15 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements if (Objects.nonNull(sampleTmp) && Objects.nonNull(gasTmp) && Objects.nonNull(detTmp)) { //调用分析方法进行分析操作 boolean bRet = phdFileUtil.analyzeSpectrum(sampleTmp, gasTmp, detTmp, spectrum_group.BgCalPara, xeMap, sampleBetaData); - if (bRet) { - if (analyseData.isQcData()) { - if (StringUtils.isNotBlank(sampleBetaData.getQcFilePathName())) { - EnergySpectrumStruct struct = sampleBetaData.getQcStruct(); - if (Objects.nonNull(struct)) { - phdFileUtil.CalQCBoundary(betaList, gammaList, betaFittingParaToUi, gammaFittingParaToUi, struct, xeMap, sampleBetaData); - } + if (analyseData.isQcData()) { + if (StringUtils.isNotBlank(sampleBetaData.getQcFilePathName())) { + EnergySpectrumStruct struct = sampleBetaData.getQcStruct(); + if (Objects.nonNull(struct)) { + phdFileUtil.CalQCBoundary(betaList, gammaList, betaFittingParaToUi, gammaFittingParaToUi, struct, xeMap, sampleBetaData); } } + } + if (bRet) { List sampleBoundary = (List) xeMap.get("SampleBoundary"); if(CollectionUtils.isNotEmpty(sampleBoundary)) { betaDataFile.setSampleBoundary(sampleBoundary); @@ -3183,6 +3182,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements sampleBetaData.setXeResultsSpectrumList(xeResultsSpectrumList); sampleBetaData.setBProcessed(true); sampleBetaData.setSaveAnalysisResult(true); + sampleBetaData.setBgPara(spectrum_group.BgCalPara); } analyseResultMap.put(sampleFileName, xeMap); } else {