Commit 4fba0786 authored by zhangsen's avatar zhangsen

bug修改

parent a4b4563a
......@@ -179,7 +179,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
warningNum.put("name","注意");
warningNum.put("value",idxBizPvWarningRecordList.stream().filter(e->e.getWarningName().equals("注意")).count());
pointNum.put("name","安全");
pointNum.put("value",total - idxBizPvWarningRecordList.size());
pointNum.put("value", Math.max((total - idxBizPvWarningRecordList.size()), 0));
List<Map<String,Object>> list = new ArrayList<>();
list.add(pointNum);
......
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