diff options
| author | wangwei <[email protected]> | 2018-12-27 21:12:34 +0800 |
|---|---|---|
| committer | wangwei <[email protected]> | 2018-12-27 21:12:34 +0800 |
| commit | e789574e45e8bdafd2514972bd6a9158ab61def6 (patch) | |
| tree | d326707deb2814bab63399ab3e10a8e40e531dc6 | |
| parent | 09b895e06e7b140465f3af5d26266d450f822dd6 (diff) | |
修正网络流量监控查询sql
| -rw-r--r-- | src/main/resources/mybatis/mapper/MonitorMapper.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/resources/mybatis/mapper/MonitorMapper.xml b/src/main/resources/mybatis/mapper/MonitorMapper.xml index be2edfc..0fe6b16 100644 --- a/src/main/resources/mybatis/mapper/MonitorMapper.xml +++ b/src/main/resources/mybatis/mapper/MonitorMapper.xml @@ -35,11 +35,13 @@ FROM traffic_trans_statistic where stat_time >= #{start} and stat_time < #{end} + group by area UNION ALL SELECT entrance_id AS area,'IN' AS type,ifnull(c2s_byte_len,0) AS count,#{push} AS time FROM traffic_trans_statistic where stat_time >= #{start} and stat_time < #{end} + group by area ]]> </select> <!--时间:网络流量监控_5min--> |
