修改流量统计ua跟http网站other范围

This commit is contained in:
zhanghongqing
2018-11-16 16:28:14 +08:00
parent 0412708c99
commit c92b3691a0
2 changed files with 23 additions and 17 deletions

View File

@@ -43,7 +43,7 @@
SELECT SUM(link_num) count FROM traffic_ua_statistic
WHERE bs_type !=0 and os_type=#{osType}
<if test="bsType!=null and bsType.size()>0">
and os_type not in
and bs_type not in
<foreach collection="bsType" item="singleType" index="index" open="(" close=")" separator=",">
#{singleType}
</foreach>
@@ -74,7 +74,7 @@
SELECT SUM(link_num) count FROM traffic_ua_statistic
WHERE os_type !=0 and bs_type=#{bsType}
<if test="osType!=null and osType.size()>0">
and bs_type not in
and os_type not in
<foreach collection="osType" item="singleType" index="index" open="(" close=")" separator=",">
#{singleType}
</foreach>

View File

@@ -271,11 +271,13 @@ public class DashboardService extends BaseService{
for (Map map : list) {
bsType.add(map.get("bsType"));
}
Map others = new HashMap();
others = trafficUaStatisticDao.systemOthers(bsType,osType,statTime);
if(others!=null&&others.size()>0){
others.put("bsType", "-1");
list.add(others);
if(list.size()>10) {
Map others = new HashMap();
others = trafficUaStatisticDao.systemOthers(bsType,osType,statTime);
if(others!=null&&others.size()>0){
others.put("bsType", "-1");
list.add(others);
}
}
}
}
@@ -320,11 +322,13 @@ public class DashboardService extends BaseService{
for (Map map : list) {
osType.add(map.get("osType"));
}
Map others = new HashMap();
others = trafficUaStatisticDao.browserOthers(osType,bsType,statTime);
if(others!=null&&others.size()>0){
others.put("osType", "-1");
list.add(others);
if(list.size()>10) {
Map others = new HashMap();
others = trafficUaStatisticDao.browserOthers(osType,bsType,statTime);
if(others!=null&&others.size()>0){
others.put("osType", "-1");
list.add(others);
}
}
}
}
@@ -372,11 +376,13 @@ public class DashboardService extends BaseService{
for (Map map : list) {
webIdList.add(map.get("webId"));
}
Map others = new HashMap();
others = trafficHttpStatisticDao.websiteDomainOthers(webIdList,websiteServiceId,statTime);
if(others!=null&&others.size()>0){
others.put("webId", "-1");
list.add(others);
if(list.size()>10) {
Map others = new HashMap();
others = trafficHttpStatisticDao.websiteDomainOthers(webIdList,websiteServiceId,statTime);
if(others!=null&&others.size()>0){
others.put("webId", "-1");
list.add(others);
}
}
}
}