From 9e1a577e7ea6f174abf68458dbd16cf7aedc46aa Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Fri, 4 Jan 2019 12:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=B5=81=E9=87=8F=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2service=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/dashboard/TrafficStatisticsInfoController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java index b1e531660..24d9a3d95 100644 --- a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java +++ b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsInfoController.java @@ -603,6 +603,7 @@ public class TrafficStatisticsInfoController extends BaseController { totalLink+=Long.parseLong(lf.format(m.get("linkNum"))); totalPackets+=Long.parseLong(lf.format(m.get("packets"))); totalGByte+=Double.parseDouble(lf.format(m.get("count"))); + m.remove("domainData"); Double value1=0d; if(StringUtil.isBlank(m.get("topicId").toString())){ value1=268435455d; @@ -616,6 +617,8 @@ public class TrafficStatisticsInfoController extends BaseController { break; } } + + } //将总数据赋值给每个实体 方便计算百分比 如果数据都为空 则不返回给页面展示 for(int i=list.size()-1;i>=0;i--) {