fix:修改dos谱业务逻辑 块名称从DoseRare改为DoseRate

This commit is contained in:
xiaoguangbin 2024-11-06 16:32:37 +08:00
parent 1ffb984286
commit 00f56418d5

View File

@ -69,9 +69,9 @@ public class DOSSpectrum extends AbstractSpectrumHandler{
}
protected void checkAirSamplerFlowBlock(){
if(super.mailContent.indexOf("#DoseRare") == -1){
if(super.mailContent.indexOf("#DoseRate") == -1){
ErrorLogManager.getInstance().write(new SpectrumErrorEvent(new Date(), ErrorType.AIR_SAMPLER_FLOW_ERROR,super.spectrumFile.getName(),super.getMsgId()));
throw new AirSamplerFlowException("this is no DoseRare data");
throw new AirSamplerFlowException("this is no DoseRate data");
}
}
@ -128,7 +128,7 @@ public class DOSSpectrum extends AbstractSpectrumHandler{
throw new PHD_ReadException("THE PHDFile has some blocks can't be read:"+super.spectrumFile.getAbsolutePath());
}
if(sourceData.dr_record_count <= 0 || sourceData.dr_start_date.size() < 0 || sourceData.dr_start_time.size() < 0){
throw new AirSamplerFlowException("DoseRare data error");
throw new AirSamplerFlowException("DoseRate data error");
}
this.sourceData = sourceData;
}