fix:解决异常报警 取核素平均值报错问题
This commit is contained in:
parent
c2c0566dae
commit
a5eb7a4ea7
|
@ -37,6 +37,6 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
AND TO_NUMBER(n.CONCENTRATION) > TO_NUMBER(n.MDC)
|
AND n.CONCENTRATION > n.MDC
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
|
@ -37,6 +37,6 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
AND TO_NUMBER(n.CONCENTRATION) > TO_NUMBER(n.MDC)
|
AND n.CONCENTRATION > n.MDC
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
|
@ -148,6 +148,7 @@ public class CalculateConcServiceImpl implements CalculateConcService {
|
||||||
autoResult.putAll(calculate(nuclConcAuto, index));
|
autoResult.putAll(calculate(nuclConcAuto, index));
|
||||||
for (String nuclide : nuclides) {
|
for (String nuclide : nuclides) {
|
||||||
String val = autoResult.get(nuclide);
|
String val = autoResult.get(nuclide);
|
||||||
|
if(StrUtil.isBlank(val)) continue;
|
||||||
AlarmAnalysisNuclideAvg analysisNuclideAvg = new AlarmAnalysisNuclideAvg(station, nuclide, val);
|
AlarmAnalysisNuclideAvg analysisNuclideAvg = new AlarmAnalysisNuclideAvg(station, nuclide, val);
|
||||||
analysisNuclideAvg.setDataSourceType(CommonConstant.ARMDARR);
|
analysisNuclideAvg.setDataSourceType(CommonConstant.ARMDARR);
|
||||||
autoAvgs.add(analysisNuclideAvg);
|
autoAvgs.add(analysisNuclideAvg);
|
||||||
|
@ -158,6 +159,7 @@ public class CalculateConcServiceImpl implements CalculateConcService {
|
||||||
manResult.putAll(calculate(nuclConcMan, index));
|
manResult.putAll(calculate(nuclConcMan, index));
|
||||||
for (String nuclide : nuclides) {
|
for (String nuclide : nuclides) {
|
||||||
String val = manResult.get(nuclide);
|
String val = manResult.get(nuclide);
|
||||||
|
if(StrUtil.isBlank(val)) continue;
|
||||||
AlarmAnalysisNuclideAvg analysisNuclideAvg = new AlarmAnalysisNuclideAvg(station, nuclide, val);
|
AlarmAnalysisNuclideAvg analysisNuclideAvg = new AlarmAnalysisNuclideAvg(station, nuclide, val);
|
||||||
analysisNuclideAvg.setDataSourceType(CommonConstant.ARMDRRR);
|
analysisNuclideAvg.setDataSourceType(CommonConstant.ARMDRRR);
|
||||||
manAvgs.add(analysisNuclideAvg);
|
manAvgs.add(analysisNuclideAvg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user