人工交互查询数据库如果是空的赋值-9999,如果不是空的正常赋值
This commit is contained in:
parent
99c29c9e07
commit
2cdbc8fd85
|
@ -783,8 +783,7 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
|
|||
GardsAnalySetting analySetting = spectrumAnalysisMapper.getAnalySetting(analysis.getIdAnalysis());
|
||||
if (Objects.nonNull(analySetting)) {
|
||||
phd.getUsedSetting().setECutAnalysis_Low(analySetting.getEcutanalysisLow());
|
||||
double t_d = analySetting.getEcutanalysisHigh();
|
||||
phd.getUsedSetting().setECutAnalysis_High((t_d <= phd.getUsedSetting().getECutAnalysis_Low() ? 0 : t_d));
|
||||
phd.getUsedSetting().setECutAnalysis_High((Objects.nonNull(analySetting.getEcutanalysisHigh())?analySetting.getEcutanalysisHigh():-9999));
|
||||
phd.getUsedSetting().setEnergyTolerance(analySetting.getEnergytolerance());
|
||||
phd.getUsedSetting().setCalibrationPSS_high(analySetting.getCalibrationpssHigh());
|
||||
phd.getUsedSetting().setCalibrationPSS_low(analySetting.getCalibrationpssLow());
|
||||
|
|
Loading…
Reference in New Issue
Block a user