1:为通联关系查询添加asn的条件
2:修改traffic的查询bug
This commit is contained in:
@@ -123,7 +123,7 @@ FROM
|
||||
</select>
|
||||
<!--获取域名 -->
|
||||
<select id="getTrafficHttpDomain" resultType="java.util.HashMap">
|
||||
select web_id webId, unique_num uniqueNum,entrance_id entranceId,SUM(c2s_byte_len + s2c_byte_len) byteCount,
|
||||
select web_id webId, max(unique_num) uniqueNum,entrance_id entranceId,SUM(c2s_byte_len + s2c_byte_len) byteCount,
|
||||
sum(c2s_pkt_num + s2c_pkt_num) pktCount from traffic_http_focus_statistic t where
|
||||
<![CDATA[ stat_time>= #{beginDate} and stat_time< #{endDate}]]>
|
||||
<if test="domain!=null">
|
||||
@@ -135,12 +135,14 @@ FROM
|
||||
group by web_id order by unique_num
|
||||
</select>
|
||||
<select id="getDomainTrans" resultType="com.nis.domain.restful.dashboard.TrafficHttpFocusStatistic">
|
||||
select stat_time time, unique_num count from traffic_http_focus_statistic t where
|
||||
select stat_time time, max(unique_num)count from traffic_http_focus_statistic t where
|
||||
<![CDATA[ stat_time>= #{beginDate} and stat_time< #{endDate}]]>
|
||||
and web_id=#{domain}
|
||||
<if test="entranceId!=null">
|
||||
and entrance_id=#{entranceId}
|
||||
</if>
|
||||
|
||||
group by stat_time
|
||||
order by stat_time
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user