Commit 12b53690 authored by jichao's avatar jichao

逐时负荷--修改bug

parent 998fe633
......@@ -85,6 +85,8 @@ public class AdaptiveServiceImpl implements AdaptiveService {
BigDecimal hswd = (BigDecimal) json.get(code_array[1]);
//水流量
BigDecimal sll = (BigDecimal) json.get(code_array[2]);
//如果其中任何一个数据为空,继续下一条
if (gswd == null || hswd == null || sll == null) return;
//公式计算
Float building = Math.abs(gswd.subtract(hswd).multiply(sll).multiply(new BigDecimal(4.12)).divide(new BigDecimal(3.6), 1, BigDecimal.ROUND_HALF_UP).floatValue());
buildingList.set(hour, building);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment