fix: 修正sf6气体pressure为空出错,导致每日汇总任务中断,后续任务都没做无数据的问题

dev
huangfeng 5 days ago
parent b8c7a68c13
commit ba5d244533

@ -515,7 +515,10 @@ public class GisSf6PressureServiceImpl extends AbstractCacEtlService<GisSf6Press
{ {
if(mapObj.get("pressure") != null) if(mapObj.get("pressure") != null)
{ {
listRes.add(new BigDecimal(mapObj.get("pressure").toString())); String str = mapObj.get("pressure").toString();
if (!StringUtils.isBlank(str)) {
listRes.add(new BigDecimal(str));
}
} }
} }
if(!listRes.isEmpty()) if(!listRes.isEmpty())
@ -536,7 +539,10 @@ public class GisSf6PressureServiceImpl extends AbstractCacEtlService<GisSf6Press
{ {
if(mapObj1.get("pressure") != null) if(mapObj1.get("pressure") != null)
{ {
listRes1.add(new BigDecimal(mapObj1.get("pressure").toString())); String str = mapObj1.get("pressure").toString();
if (!StringUtils.isBlank(str)) {
listRes1.add(new BigDecimal(str));
}
} }
} }
if(!listRes1.isEmpty()) if(!listRes1.isEmpty())

Loading…
Cancel
Save