自动处理模块生成错误谱文件名称时,错误谱文件名称前缀部分无法正常生成时新加生成逻辑
This commit is contained in:
parent
1744232228
commit
714cda964f
|
@ -182,7 +182,14 @@ public abstract class AbstractS_D_Q_G_SpectrumHandler extends AbstractSpectrumHa
|
|||
protected void updateErrorSpectrumFileName() throws FileNotFoundException {
|
||||
StringBuilder newFileName = new StringBuilder();
|
||||
if (StringUtils.isNotBlank(this.sourceData.measurement_id)) {
|
||||
newFileName.append(super.spectrumServiceQuotes.getNameStandUtil().GetFileNameFromDateTime(this.sourceData.measurement_id, ""));
|
||||
String newName = super.spectrumServiceQuotes.getNameStandUtil().GetFileNameFromDateTime(this.sourceData.measurement_id, "");
|
||||
if (StringUtils.isNotBlank(newName)) {
|
||||
newFileName.append(newName);
|
||||
} else {
|
||||
newFileName.append(this.sourceData.detector_code);
|
||||
newFileName.append(StringConstant.DASH);
|
||||
newFileName.append("");
|
||||
}
|
||||
} else {
|
||||
newFileName.append(this.sourceData.detector_code);
|
||||
newFileName.append(StringConstant.DASH);
|
||||
|
|
Loading…
Reference in New Issue
Block a user