去掉sql!=
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
</sql>
|
</sql>
|
||||||
<!-- 获取最近时间 -->
|
<!-- 获取最近时间 -->
|
||||||
<select id="getMaxStatTime" resultType="com.nis.domain.restful.dashboard.TrafficProtocolStatistic">
|
<select id="getMaxStatTime" resultType="com.nis.domain.restful.dashboard.TrafficProtocolStatistic">
|
||||||
SELECT stat_time statTime FROM traffic_protocol_statistic WHERE proto_type != 0 order by stat_time desc limit 1
|
SELECT stat_time statTime FROM traffic_protocol_statistic WHERE order by stat_time desc limit 1
|
||||||
</select>
|
</select>
|
||||||
<select id="protocolChart" resultType="java.util.HashMap">
|
<select id="protocolChart" resultType="java.util.HashMap">
|
||||||
SELECT proto_type protoType, SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_protocol_statistic WHERE
|
SELECT proto_type protoType, SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_protocol_statistic WHERE
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<!--浏览器TOP10后所有为others -->
|
<!--浏览器TOP10后所有为others -->
|
||||||
<select id="systemOthers" resultType="java.util.HashMap">
|
<select id="systemOthers" resultType="java.util.HashMap">
|
||||||
SELECT SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_ua_statistic
|
SELECT SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_ua_statistic
|
||||||
WHERE bs_type !=0 and os_type=#{osType}
|
WHERE os_type=#{osType}
|
||||||
<if test="bsType!=null and bsType.size()>0">
|
<if test="bsType!=null and bsType.size()>0">
|
||||||
and bs_type not in
|
and bs_type not in
|
||||||
<foreach collection="bsType" item="singleType" index="index" open="(" close=")" separator=",">
|
<foreach collection="bsType" item="singleType" index="index" open="(" close=")" separator=",">
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<!--操作系统TOP10后所有为others -->
|
<!--操作系统TOP10后所有为others -->
|
||||||
<select id="browserOthers" parameterType="java.util.List" resultType="java.util.HashMap">
|
<select id="browserOthers" parameterType="java.util.List" resultType="java.util.HashMap">
|
||||||
SELECT SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_ua_statistic
|
SELECT SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_ua_statistic
|
||||||
WHERE os_type !=0 and bs_type=#{bsType}
|
WHERE bs_type=#{bsType}
|
||||||
<if test="osType!=null and osType.size()>0">
|
<if test="osType!=null and osType.size()>0">
|
||||||
and os_type not in
|
and os_type not in
|
||||||
<foreach collection="osType" item="singleType" index="index" open="(" close=")" separator=",">
|
<foreach collection="osType" item="singleType" index="index" open="(" close=")" separator=",">
|
||||||
|
|||||||
Reference in New Issue
Block a user