数据库加载增加判断analysisId条件
This commit is contained in:
parent
071e9690c6
commit
c62b55913a
|
@ -77,6 +77,7 @@ public class SelfStationServiceImpl implements ISelfStationService {
|
||||||
analysisID = spectrumAnalysisMapper.getAnalysisID(dbName, sampleId, analyst);
|
analysisID = spectrumAnalysisMapper.getAnalysisID(dbName, sampleId, analyst);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
if (Objects.nonNull(analysisID)) {
|
||||||
//查询数据库文件信息
|
//查询数据库文件信息
|
||||||
SpectrumFileRecord dbSpectrumFilePath = spectrumAnalysisMapper.getDBSpectrumFilePath(dbName, sampleId, analysisID);
|
SpectrumFileRecord dbSpectrumFilePath = spectrumAnalysisMapper.getDBSpectrumFilePath(dbName, sampleId, analysisID);
|
||||||
//判断数据库分析结果基础信息是否为空
|
//判断数据库分析结果基础信息是否为空
|
||||||
|
@ -145,6 +146,7 @@ public class SelfStationServiceImpl implements ISelfStationService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -423,6 +423,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
File detTmp = null;
|
File detTmp = null;
|
||||||
File qcTmp = null;
|
File qcTmp = null;
|
||||||
try {
|
try {
|
||||||
|
if (Objects.nonNull(analysisID)) {
|
||||||
//查询数据库文件信息
|
//查询数据库文件信息
|
||||||
SpectrumFileRecord dbSpectrumFilePath = spectrumAnalysisMapper.getDBSpectrumFilePath(dbName, sampleId, analysisID);
|
SpectrumFileRecord dbSpectrumFilePath = spectrumAnalysisMapper.getDBSpectrumFilePath(dbName, sampleId, analysisID);
|
||||||
if (Objects.nonNull(dbSpectrumFilePath)) {
|
if (Objects.nonNull(dbSpectrumFilePath)) {
|
||||||
|
@ -596,6 +597,7 @@ public class SpectrumAnalysisServiceImpl extends AbstractLogOrReport implements
|
||||||
} else {
|
} else {
|
||||||
resultMap.clear();
|
resultMap.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user