带宽划算单位

This commit is contained in:
zhanghongqing
2018-12-12 14:19:51 +08:00
parent dcdc45b952
commit 434c343617

View File

@@ -71,7 +71,7 @@
</select> --> </select> -->
<!-- 获取近一小时的带宽根据ip46协议 tcp,udp变化 --> <!-- 获取近一小时的带宽根据ip46协议 tcp,udp变化 -->
<select id="getBandwidthTrans" resultMap="BandwidthResultMap"> <select id="getBandwidthTrans" resultMap="BandwidthResultMap">
select IFNULL(SUM(c2s_byte_len+s2c_byte_len),0) gbps,IFNULL(SUM(c2s_pkt_num+s2c_pkt_num),0) pps,IFNULL(SUM(link_num),0) linkNum, stat_time time from traffic_trans_statistic select IFNULL(SUM(c2s_byte_len+s2c_byte_len)*8/300/1024/1024/1024,0) gbps,IFNULL(SUM(c2s_pkt_num+s2c_pkt_num)/300,0) pps,IFNULL(SUM(link_num),0) linkNum, stat_time time from traffic_trans_statistic
where <![CDATA[stat_time<=#{endDate} and stat_time>=#{beginDate}]]> where <![CDATA[stat_time<=#{endDate} and stat_time>=#{beginDate}]]>
<if test="addrType != null"> <if test="addrType != null">
and addr_type=#{addrType} and addr_type=#{addrType}