相关接口增加ipv4、ipv6出入流量字段。
服务器管理列表新增字段和排序。 优化监控看板流量统计。
This commit is contained in:
+59
-12
@@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="clientId" column="client_id"/>
|
||||
<result property="speed" column="speed"/>
|
||||
<result property="duplex" column="duplex"/>
|
||||
|
||||
</resultMap>
|
||||
<sql id="selectInitialBandwidthTrafficVo"> select id, name, mac, status, type, ipV4, in_dropped, out_dropped, in_speed, out_speed, create_time, update_time, create_by, update_by, client_id from initial_bandwidth_traffic </sql>
|
||||
<select id="selectInitialBandwidthTrafficList" parameterType="InitialBandwidthTraffic" resultMap="InitialBandwidthTrafficResult">
|
||||
@@ -143,12 +144,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="getNetInterfaceDetailsMsg" parameterType="InitialBandwidthTraffic" resultMap="InitialBandwidthTrafficResult">
|
||||
select id, `name`, mac, status, `type`, ipV4, in_dropped, out_dropped, in_speed, out_speed,
|
||||
total_in_speed, total_out_speed, create_time, update_time, create_by, update_by,
|
||||
client_id, duplex, speed,
|
||||
ipv4_in_speed, ipv4_out_speed, ipv6_in_speed, ipv6_out_speed,
|
||||
total_ipv4_in_speed, total_ipv4_out_speed, total_ipv6_in_speed, total_ipv6_out_speed,
|
||||
<select id="getNetInterfaceDetailsMsg" parameterType="InitialBandwidthTraffic" resultType="InitialBandwidthTraffic">
|
||||
select
|
||||
id,
|
||||
`name`,
|
||||
mac,
|
||||
status,
|
||||
`type`,
|
||||
ipV4,
|
||||
in_dropped as inDropped,
|
||||
out_dropped as outDropped,
|
||||
in_speed as inSpeed,
|
||||
out_speed as outSpeed,
|
||||
total_in_speed as totalInSpeed,
|
||||
total_out_speed as totalOutSpeed,
|
||||
create_time as createTime,
|
||||
update_time as updateTime,
|
||||
create_by as createBy,
|
||||
update_by as updateBy,
|
||||
client_id as clientId,
|
||||
duplex,
|
||||
speed,
|
||||
ipv4_in_speed as ipv4InSpeed,
|
||||
ipv4_out_speed as ipv4OutSpeed,
|
||||
ipv6_in_speed as ipv6InSpeed,
|
||||
ipv6_out_speed as ipv6OutSpeed,
|
||||
total_ipv4_in_speed as totalIpv4InSpeed,
|
||||
total_ipv4_out_speed as totalIpv4OutSpeed,
|
||||
total_ipv6_in_speed as totalIpv6InSpeed,
|
||||
total_ipv6_out_speed as totalIpv6OutSpeed,
|
||||
ipV6
|
||||
from ${tableName}
|
||||
<where>
|
||||
@@ -159,12 +183,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="getNetTrafficList" parameterType="InitialBandwidthTraffic" resultMap="InitialBandwidthTrafficResult">
|
||||
select id, `name`, mac, status, `type`, ipV4, in_dropped, out_dropped, in_speed, out_speed,
|
||||
total_in_speed, total_out_speed, create_time, update_time, create_by, update_by,
|
||||
client_id, duplex, speed,
|
||||
ipv4_in_speed, ipv4_out_speed, ipv6_in_speed, ipv6_out_speed,
|
||||
total_ipv4_in_speed, total_ipv4_out_speed, total_ipv6_in_speed, total_ipv6_out_speed,
|
||||
<select id="getNetTrafficList" parameterType="InitialBandwidthTraffic" resultType="InitialBandwidthTraffic">
|
||||
select
|
||||
id,
|
||||
`name`,
|
||||
mac,
|
||||
status,
|
||||
`type`,
|
||||
ipV4,
|
||||
in_dropped as inDropped,
|
||||
out_dropped as outDropped,
|
||||
in_speed as inSpeed,
|
||||
out_speed as outSpeed,
|
||||
total_in_speed as totalInSpeed,
|
||||
total_out_speed as totalOutSpeed,
|
||||
create_time as createTime,
|
||||
update_time as updateTime,
|
||||
create_by as createBy,
|
||||
update_by as updateBy,
|
||||
client_id as clientId,
|
||||
duplex,
|
||||
speed,
|
||||
ipv4_in_speed as ipv4InSpeed,
|
||||
ipv4_out_speed as ipv4OutSpeed,
|
||||
ipv6_in_speed as ipv6InSpeed,
|
||||
ipv6_out_speed as ipv6OutSpeed,
|
||||
total_ipv4_in_speed as totalIpv4InSpeed,
|
||||
total_ipv4_out_speed as totalIpv4OutSpeed,
|
||||
total_ipv6_in_speed as totalIpv6InSpeed,
|
||||
total_ipv6_out_speed as totalIpv6OutSpeed,
|
||||
ipV6
|
||||
from ${tableName}
|
||||
<where>
|
||||
|
||||
Reference in New Issue
Block a user