流量统计优化sql查询速度

This commit is contained in:
zhanghongqing
2018-10-26 14:41:27 +08:00
parent f35ca05c0c
commit 2f73a5799b
15 changed files with 395 additions and 249 deletions

View File

@@ -1,5 +1,6 @@
package com.nis.web.dao.dashboard;
import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -9,20 +10,22 @@ import com.nis.domain.restful.dashboard.TrafficUaStatistic;
import com.nis.web.dao.MyBatisDao;
@MyBatisDao
public interface TrafficUaStatisticDao {
List<TrafficUaStatistic> systemList();
List<Map> getBrowserBySystem(@Param("osType") Integer osType);
List<TrafficUaStatistic> browserList();
List<Map> getSystemBybrowser(@Param("bsType") Integer bsType);
Map systemOthers(@Param("bsType") List bsType,@Param("osType") Integer osType);
TrafficUaStatistic getMaxStatTime();
Map browserOthers(@Param("osType") List osType,@Param("bsType") Integer bsType);
List<TrafficUaStatistic> systemList(@Param("statTime") Date statTime);
List<Map> getBrowserBySystem(@Param("osType") Integer osType,@Param("statTime") Date statTime);
List<TrafficUaStatistic> browserList(@Param("statTime") Date statTime);
List<Map> getSystemBybrowser(@Param("bsType") Integer bsType,@Param("statTime") Date statTime);
Integer preSystemListCount(@Param("osType") Integer osType);
Map systemOthers(@Param("bsType") List bsType,@Param("osType") Integer osType,@Param("statTime") Date statTime);
Integer preBrowserListCount(@Param("bsType") Integer bsType);
Map browserOthers(@Param("osType") List osType,@Param("bsType") Integer bsType,@Param("statTime") Date statTime);
Integer preSystemListCount(@Param("osType") Integer osType,@Param("statTime") Date statTime);
Integer preBrowserListCount(@Param("bsType") Integer bsType,@Param("statTime") Date statTime);
}