diff --git a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsReportController.java b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsReportController.java index 33770e56d..9d38654be 100644 --- a/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsReportController.java +++ b/src/main/java/com/nis/web/controller/dashboard/TrafficStatisticsReportController.java @@ -102,6 +102,28 @@ public class TrafficStatisticsReportController extends BaseController { Map map = (Map) list.get(0); List nasIpList=(List) map.get("nasIpList"); List accountList=(List) map.get("accountList"); + if (!StringUtil.isEmpty(nasIpList)&&nasIpList.size()>0) { + List newNasIpList = new ArrayList(); + for (int i = 0; i < nasIpList.size(); i++) { + newNasIpList.add(nasIpList.get(i)); + if (i+1>=10) { + break; + } + } + nasIpList = newNasIpList; + } + if (!StringUtil.isEmpty(accountList)&&accountList.size()>0) { + List newAccountList = new ArrayList(); + for (int i = 0; i < accountList.size(); i++) { + newAccountList.add(accountList.get(i)); + if (i+1>=10) { + break; + } + } + + accountList = newAccountList; + } + System.out.println("-------------------:"+nasIpList.size()+"+++"+accountList.size()+"=================="); model.addAttribute("nasIpList", nasIpList); model.addAttribute("accountList", accountList); if(StringUtil.isBlank(account)&&accountList!=null&&accountList.size()>0&&!"3".equals(searchBusinessType)) { diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp index f68c47d2a..23d9e50b7 100644 --- a/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp +++ b/src/main/webapp/WEB-INF/views/dashboard/trafficUserBehavior.jsp @@ -210,20 +210,24 @@
- + + +
- + + +