人工交互分析读取mdc参数文件时,halflife对应参数需要从天转换成秒

This commit is contained in:
qiaoqinzheng 2023-12-19 10:37:39 +08:00
parent 4b6b3046c4
commit 188120d534

View File

@ -5622,7 +5622,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi
if (attribute.getNodeName().equalsIgnoreCase("nuclide_name")) { if (attribute.getNodeName().equalsIgnoreCase("nuclide_name")) {
info.setNuclideName(attribute.getNodeValue()); info.setNuclideName(attribute.getNodeValue());
} else if (attribute.getNodeName().equalsIgnoreCase("halflife")) { } else if (attribute.getNodeName().equalsIgnoreCase("halflife")) {
info.setHalflife(Double.valueOf(attribute.getNodeValue())); double halflife = Double.valueOf(attribute.getNodeValue()) * 86400;
info.setHalflife(halflife);
} }
} }
if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank(info.getNuclideName()) && Objects.nonNull(info.getHalflife())) { if (com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank(info.getNuclideName()) && Objects.nonNull(info.getHalflife())) {