fix: 加载F状态的能谱增加能谱文件找不到提示
This commit is contained in:
parent
10e07c5969
commit
db9d27d30d
|
@ -698,11 +698,22 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
|||
GardsSampleData gasSampleData = sampleDataSpectrumService.getSampleByMId(aux.getGasBkgdMeasurementId(),
|
||||
DataTypeAbbr.DETBKPHD.getType(), sampleData.getSampleType());
|
||||
|
||||
if(StringUtils.isEmpty(sampleFilePath)
|
||||
&& (Objects.isNull(gasSampleData) || StringUtils.isEmpty(gasSampleData.getInputFileName()))
|
||||
&& (Objects.isNull(detSampleData) || StringUtils.isEmpty(detSampleData.getInputFileName()))){
|
||||
result.error500("gas and det file is no exist or is error..");
|
||||
return result;
|
||||
}
|
||||
|
||||
// 如果找不到sample、det、gas谱文件数据则解析失败修改记录状态
|
||||
if(StringUtils.isEmpty(sampleFilePath) || Objects.isNull(gasSampleData)
|
||||
|| StringUtils.isEmpty(gasSampleData.getInputFileName())){
|
||||
result.error500("gas file is no exist or is error..");
|
||||
return result;
|
||||
}
|
||||
if(StringUtils.isEmpty(sampleFilePath) || Objects.isNull(detSampleData)
|
||||
|| StringUtils.isEmpty(detSampleData.getInputFileName())
|
||||
|| Objects.isNull(gasSampleData) || StringUtils.isEmpty(gasSampleData.getInputFileName())){
|
||||
result.error500("gas or det file is no exist or is error..");
|
||||
|| StringUtils.isEmpty(detSampleData.getInputFileName())){
|
||||
result.error500("det file is no exist or is error..");
|
||||
return result;
|
||||
}
|
||||
String gasFilePath = gasSampleData.getInputFileName();
|
||||
|
|
Loading…
Reference in New Issue
Block a user