增加流量统计协议详情统计接口

This commit is contained in:
zhanghongqing
2018-12-05 16:44:52 +08:00
parent eb1c7ac4b2
commit 4a32bb3ed5
4 changed files with 51 additions and 0 deletions

View File

@@ -219,6 +219,10 @@ public class DashboardService extends BaseService{
return list;
}
/**
* 协议统计
* @return
*/
public List<Map> protocolChart() {
TrafficProtocolStatistic maxStatTime = trafficProtocolStatisticDao.getMaxStatTime();
List<Map> list=new ArrayList<Map>();
@@ -235,6 +239,19 @@ public class DashboardService extends BaseService{
return list;
}
/**
* 协议统计报表
* @return
*/
public List<Map> getProtocolList(){
TrafficProtocolStatistic maxStatTime = trafficProtocolStatisticDao.getMaxStatTime();
List<Map> list=new ArrayList<Map>();
if(maxStatTime!=null&&maxStatTime.getStatTime()!=null) {
Date statTime = maxStatTime.getStatTime();
list = trafficProtocolStatisticDao.getProtocolList(statTime);
}
return list;
}
public List<Map> appChart() {
List<Map> list=new ArrayList<Map>();
TrafficAppStatistic maxStatTime = trafficAppStatisticDao.getMaxStatTime();