fix:自建台站saveToDB报错

This commit is contained in:
nieziyan 2024-08-05 09:25:01 +08:00
parent 219b644669
commit b7ae380fb1
2 changed files with 9 additions and 3 deletions

View File

@ -861,6 +861,10 @@ public class PHDFileUtil extends AbstractLogOrReport {
path.append("Spectrum");
path.append(StringPool.SLASH+"Xenon");
path.append(StringPool.SLASH+"Spalax");
} else if (systemType.contains("C")) {
path.append("Spectrum");
path.append(StringPool.SLASH+"Xenon");
path.append(StringPool.SLASH+"Self");
}
if(dataType.contains("SAMPLEPHD")) {
path.append(StringPool.SLASH+"Samplephd");

View File

@ -4984,9 +4984,11 @@ public class SelfStationServiceImpl implements ISelfStationService {
result.error500("sampleFile save failed");
return result;
}
if (!this.OriginalDataStore(detStruct, detTmpPath, detFilePathName) ){
result.error500("detFile save failed");
return result;
if (StrUtil.isNotBlank(detFilePathName)){
if (!this.OriginalDataStore(detStruct, detTmpPath, detFilePathName) ){
result.error500("detFile save failed");
return result;
}
}
if (StringUtils.isNotBlank(qcFilePathName)) {
if (!this.OriginalDataStore(qcStruct, qcTmpPath, qcFilePathName) ){