优化网卡名称变更处理
增加非saas平台拨号数据处理 优化详情信息
This commit is contained in:
@@ -12,33 +12,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="ipv4Address" column="ipv4_address" />
|
||||
<result property="ipv4MaskBits" column="ipv4_mask_bits" />
|
||||
<result property="ipv4Gateway" column="ipv4_gateway" />
|
||||
<result property="bandwidthResult" column="bandwidth_result" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="status" column="status" />
|
||||
<result property="macAddress" column="mac_address" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRmPppoeConfigSubVo">
|
||||
select id, client_id, serial_number, vlan_id, ipv4_address, ipv4_mask_bits, ipv4_gateway, create_time, update_time, create_by, update_by, status from rm_pppoe_config_sub
|
||||
select id, client_id, serial_number, vlan_id, ipv4_address, ipv4_mask_bits, ipv4_gateway, bandwidth_result, create_time, update_time, create_by, update_by, status from rm_pppoe_config_sub
|
||||
</sql>
|
||||
|
||||
<select id="selectRmPppoeConfigSubList" parameterType="RmPppoeConfigSub" resultMap="RmPppoeConfigSubResult">
|
||||
<select id="selectRmPppoeConfigSubList" parameterType="RmPppoeConfigSub" resultType="RmPppoeConfigSub">
|
||||
SELECT
|
||||
a.id,
|
||||
a.client_id,
|
||||
a.serial_number,
|
||||
a.vlan_id,
|
||||
a.ipv4_address,
|
||||
a.ipv4_mask_bits,
|
||||
a.ipv4_gateway,
|
||||
a.create_time,
|
||||
a.update_time,
|
||||
a.create_by,
|
||||
a.update_by,
|
||||
a.status,
|
||||
b.mac_address
|
||||
a.client_id clientId,
|
||||
a.serial_number serialNumber,
|
||||
a.vlan_id vlanId,
|
||||
a.ipv4_address ipv4Address,
|
||||
a.ipv4_mask_bits ipv4MaskBits,
|
||||
a.ipv4_gateway ipv4Gateway,
|
||||
a.create_time createTime,
|
||||
a.update_time updateTime,
|
||||
a.create_by createBy,
|
||||
a.update_by updateBy,
|
||||
a.status status,
|
||||
b.mac_address macAddress,
|
||||
b.status virStatus
|
||||
FROM
|
||||
rm_pppoe_config_sub a
|
||||
LEFT JOIN
|
||||
@@ -70,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="ipv4Address != null">ipv4_address,</if>
|
||||
<if test="ipv4MaskBits != null">ipv4_mask_bits,</if>
|
||||
<if test="ipv4Gateway != null">ipv4_gateway,</if>
|
||||
<if test="bandwidthResult != null">bandwidth_result,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
@@ -83,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="ipv4Address != null">#{ipv4Address},</if>
|
||||
<if test="ipv4MaskBits != null">#{ipv4MaskBits},</if>
|
||||
<if test="ipv4Gateway != null">#{ipv4Gateway},</if>
|
||||
<if test="bandwidthResult != null">#{bandwidthResult},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
@@ -100,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="ipv4Address != null">ipv4_address = #{ipv4Address},</if>
|
||||
<if test="ipv4MaskBits != null">ipv4_mask_bits = #{ipv4MaskBits},</if>
|
||||
<if test="ipv4Gateway != null">ipv4_gateway = #{ipv4Gateway},</if>
|
||||
<if test="bandwidthResult != null">bandwidth_result = #{bandwidthResult},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
@@ -121,7 +125,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
<insert id="batchInsertRmPppoeConfigSub" parameterType="java.util.List">
|
||||
insert into rm_pppoe_config_sub
|
||||
(client_id, serial_number, vlan_id, ipv4_address, ipv4_mask_bits, ipv4_gateway, create_time, update_time, create_by, update_by)
|
||||
(client_id, serial_number, vlan_id, ipv4_address, ipv4_mask_bits, ipv4_gateway,
|
||||
bandwidth_result, create_time, update_time, create_by, update_by)
|
||||
values
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
@@ -131,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{item.ipv4Address},
|
||||
#{item.ipv4MaskBits},
|
||||
#{item.ipv4Gateway},
|
||||
#{item.bandwidthResult},
|
||||
#{item.createTime},
|
||||
#{item.updateTime},
|
||||
#{item.createBy},
|
||||
|
||||
Reference in New Issue
Block a user