修改流量统计操作系统跟浏览器流量参数错误

This commit is contained in:
zhanghongqing
2018-11-14 15:03:10 +08:00
parent 798447d278
commit 7633d823be

View File

@@ -33,7 +33,7 @@
and stat_time = DATE_SUB(#{statTime},INTERVAL 5 MINUTE)
</select>
<!-- 根据操作系统获取浏览器分类 -->
<select id="getBrowserBySystem" parameterType="java.lang.Integer" resultType="java.util.HashMap">
<select id="getBrowserBySystem" resultType="java.util.HashMap">
SELECT bs_type bsType, SUM(link_num) count FROM galaxy.traffic_ua_statistic
WHERE bs_type !=0 and os_type=#{osType} and stat_time = #{statTime}
GROUP BY bs_type ORDER BY count DESC limit 0,10
@@ -64,7 +64,7 @@
and stat_time = DATE_SUB(#{statTime},INTERVAL 5 MINUTE)
</select>
<!-- 根据浏览器获取操作系统分类 -->
<select id="getSystemBybrowser" parameterType="java.lang.Integer" resultType="java.util.HashMap">
<select id="getSystemBybrowser" resultType="java.util.HashMap">
SELECT os_type osType, SUM(link_num) count FROM galaxy.traffic_ua_statistic
WHERE os_type !=0 and bs_type=#{bsType} and stat_time = #{statTime}
GROUP BY os_type ORDER BY count DESC limit 0,10