去掉sql!=

This commit is contained in:
zhanghongqing
2018-12-09 19:54:01 +08:00
parent 0d32e9b61a
commit 599554ee0d
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
</sql>
<!-- 获取最近时间 -->
<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 id="protocolChart" resultType="java.util.HashMap">
SELECT proto_type protoType, SUM(c2s_byte_len+s2c_byte_len) count FROM traffic_protocol_statistic WHERE

View File

@@ -42,7 +42,7 @@
<!--浏览器TOP10后所有为others -->
<select id="systemOthers" resultType="java.util.HashMap">
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">
and bs_type not in
<foreach collection="bsType" item="singleType" index="index" open="(" close=")" separator=",">
@@ -72,7 +72,7 @@
<!--操作系统TOP10后所有为others -->
<select id="browserOthers" parameterType="java.util.List" resultType="java.util.HashMap">
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">
and os_type not in
<foreach collection="osType" item="singleType" index="index" open="(" close=")" separator=",">