拓扑管理字段新增,交换机管理接口优化、网卡信息接口新增
This commit is contained in:
+6
-1
@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="packageBandwidth" column="package_bandwidth" />
|
||||
<result property="businessName" column="business_name" />
|
||||
<result property="businessCode" column="business_code" />
|
||||
<result property="clientId" column="client_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEpsMethodChangeRecordVo">
|
||||
select id, node_name, change_content, hardware_sn, create_time, creat_by, update_time, update_by, revenue_method, traffic_port, package_bandwidth, business_name, business_code from eps_method_change_record
|
||||
select id, node_name, change_content, hardware_sn, create_time, creat_by, update_time, update_by, revenue_method, traffic_port, package_bandwidth, business_name, business_code, client_id from eps_method_change_record
|
||||
</sql>
|
||||
|
||||
<select id="selectEpsMethodChangeRecordList" parameterType="EpsMethodChangeRecord" resultMap="EpsMethodChangeRecordResult">
|
||||
@@ -36,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="packageBandwidth != null "> and package_bandwidth = #{packageBandwidth}</if>
|
||||
<if test="businessName != null and businessName != ''"> and business_name like concat('%', #{businessName}, '%')</if>
|
||||
<if test="businessCode != null and businessCode != ''"> and business_code = #{businessCode}</if>
|
||||
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
|
||||
<if test="startTime != null and startTime != ''"> and create_time >= #{startTime}</if>
|
||||
<if test="endTime != null and endTime != ''"> and create_time <= #{endTime}</if>
|
||||
</where>
|
||||
@@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="packageBandwidth != null">package_bandwidth,</if>
|
||||
<if test="businessName != null">business_name,</if>
|
||||
<if test="businessCode != null">business_code,</if>
|
||||
<if test="clientId != null">client_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -78,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="packageBandwidth != null">#{packageBandwidth},</if>
|
||||
<if test="businessName != null">#{businessName},</if>
|
||||
<if test="businessCode != null">#{businessCode},</if>
|
||||
<if test="clientId != null">#{clientId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -96,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="packageBandwidth != null">package_bandwidth = #{packageBandwidth},</if>
|
||||
<if test="businessName != null">business_name = #{businessName},</if>
|
||||
<if test="businessCode != null">business_code = #{businessCode},</if>
|
||||
<if test="clientId != null">client_id = #{clientId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
+16
-1
@@ -20,10 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="updaterId" column="updater_id" />
|
||||
<result property="updaterName" column="updater_name" />
|
||||
<result property="switchIpAddress" column="switch_ip_address" />
|
||||
<result property="peerSwitchName" column="peer_switch_name" />
|
||||
<result property="peerSwitchInterface" column="peer_switch_interface" />
|
||||
<result property="serverClientId" column="server_client_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRmEpsTopologyManagementVo">
|
||||
select id, switch_name, switch_sn, interface_name, connected_device_type, server_name, server_sn, server_port, create_time, update_time, creator_id, creator_name, updater_id, updater_name, switch_ip_address from rm_eps_topology_management
|
||||
select id, switch_name, switch_sn, interface_name, connected_device_type, server_name, server_sn, server_port, create_time, update_time, creator_id, creator_name, updater_id, updater_name, switch_ip_address, peer_switch_name, peer_switch_interface, server_client_id from rm_eps_topology_management
|
||||
</sql>
|
||||
|
||||
<select id="selectRmEpsTopologyManagementList" parameterType="RmEpsTopologyManagement" resultMap="RmEpsTopologyManagementResult">
|
||||
@@ -42,6 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updaterName != null and updaterName != ''"> and updater_name like concat('%', #{updaterName}, '%')</if>
|
||||
<if test="switchIpAddress != null and switchIpAddress != ''"> and switch_ip_address = #{switchIpAddress}</if>
|
||||
<if test="resourceName != null and resourceName != ''">and (switch_name like concat('%', #{resourceName}, '%') or server_name like concat('%', #{resourceName}, '%'))</if>
|
||||
<if test="peerSwitchName != null and peerSwitchName != ''"> and peer_switch_name like concat('%', #{peerSwitchName}, '%')</if>
|
||||
<if test="peerSwitchInterface != null and peerSwitchInterface != ''"> and peer_switch_interface = #{peerSwitchInterface}</if>
|
||||
<if test="serverClientId != null and serverClientId != ''"> and server_client_id = #{serverClientId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -67,6 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updaterId != null">updater_id,</if>
|
||||
<if test="updaterName != null">updater_name,</if>
|
||||
<if test="switchIpAddress != null">switch_ip_address,</if>
|
||||
<if test="peerSwitchName != null">peer_switch_name,</if>
|
||||
<if test="peerSwitchInterface != null">peer_switch_interface,</if>
|
||||
<if test="serverClientId != null">server_client_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="switchName != null">#{switchName},</if>
|
||||
@@ -83,6 +92,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updaterId != null">#{updaterId},</if>
|
||||
<if test="updaterName != null">#{updaterName},</if>
|
||||
<if test="switchIpAddress != null">#{switchIpAddress},</if>
|
||||
<if test="peerSwitchName != null">#{peerSwitchName},</if>
|
||||
<if test="peerSwitchInterface != null">#{peerSwitchInterface},</if>
|
||||
<if test="serverClientId != null">#{serverClientId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -103,6 +115,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updaterId != null">updater_id = #{updaterId},</if>
|
||||
<if test="updaterName != null">updater_name = #{updaterName},</if>
|
||||
<if test="switchIpAddress != null">switch_ip_address = #{switchIpAddress},</if>
|
||||
<if test="peerSwitchName != null">peer_switch_name = #{peerSwitchName},</if>
|
||||
<if test="peerSwitchInterface != null">peer_switch_interface = #{peerSwitchInterface},</if>
|
||||
<if test="serverClientId != null">server_client_id = #{serverClientId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
+19
-9
@@ -6,6 +6,7 @@
|
||||
|
||||
<resultMap type="RmSwitchManagement" id="RmSwitchManagementResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="switchType" column="switch_type" />
|
||||
<result property="switchName" column="switch_name" />
|
||||
<result property="hardwareSn" column="hardware_sn" />
|
||||
<result property="snmpAddress" column="snmp_address" />
|
||||
@@ -20,6 +21,7 @@
|
||||
<result property="securityLevel" column="security_level" />
|
||||
<result property="encryptionMethod" column="encryption_method" />
|
||||
<result property="communityName" column="community_name" />
|
||||
<result property="switchUser" column="switch_user" />
|
||||
<result property="switchPassword" column="switch_password" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
@@ -28,19 +30,20 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRmSwitchManagementVo">
|
||||
select id, switch_name, hardware_sn, snmp_address, snmp_port, online_status, heartbeat_count, heartbeat_interval, heartbeat_oid, snmp_version, up_time, read_write_permission, security_level, encryption_method, community_name, switch_password, create_time, update_time, create_by, update_by from rm_switch_management
|
||||
select id, switch_type, switch_name, hardware_sn, snmp_address, snmp_port, online_status, heartbeat_count, heartbeat_interval, heartbeat_oid, snmp_version, up_time, read_write_permission, security_level, encryption_method, community_name, switch_user, switch_password, create_time, update_time, create_by, update_by from rm_switch_management
|
||||
</sql>
|
||||
|
||||
<select id="selectRmSwitchManagementList" parameterType="RmSwitchManagement" resultMap="RmSwitchManagementResult">
|
||||
<include refid="selectRmSwitchManagementVo"/>
|
||||
<where>
|
||||
<if test="switchType != null and switchType != ''"> and switch_type = #{switchType}</if>
|
||||
<if test="switchName != null and switchName != ''"> and switch_name like concat('%', #{switchName}, '%')</if>
|
||||
<if test="hardwareSn != null and hardwareSn != ''"> and hardware_sn = #{hardwareSn}</if>
|
||||
<if test="snmpAddress != null and snmpAddress != ''"> and snmp_address = #{snmpAddress}</if>
|
||||
<if test="snmpPort != null "> and snmp_port = #{snmpPort}</if>
|
||||
<if test="onlineStatus != null and onlineStatus != ''"> and online_status = #{onlineStatus}</if>
|
||||
<if test="heartbeatCount != null "> and heartbeat_count = #{heartbeatCount}</if>
|
||||
<if test="heartbeatInterval != null "> and heartbeat_interval = #{heartbeatInterval}</if>
|
||||
<if test="heartbeatCount != null and heartbeatCount != ''"> and heartbeat_count = #{heartbeatCount}</if>
|
||||
<if test="heartbeatInterval != null and heartbeatInterval != ''"> and heartbeat_interval = #{heartbeatInterval}</if>
|
||||
<if test="heartbeatOid != null and heartbeatOid != ''"> and heartbeat_oid = #{heartbeatOid}</if>
|
||||
<if test="snmpVersion != null and snmpVersion != ''"> and snmp_version = #{snmpVersion}</if>
|
||||
<if test="upTime != null "> and up_time = #{upTime}</if>
|
||||
@@ -48,6 +51,7 @@
|
||||
<if test="securityLevel != null and securityLevel != ''"> and security_level = #{securityLevel}</if>
|
||||
<if test="encryptionMethod != null and encryptionMethod != ''"> and encryption_method = #{encryptionMethod}</if>
|
||||
<if test="communityName != null and communityName != ''"> and community_name like concat('%', #{communityName}, '%')</if>
|
||||
<if test="switchUser != null and switchUser != ''"> and switch_user = #{switchUser}</if>
|
||||
<if test="switchPassword != null and switchPassword != ''"> and switch_password = #{switchPassword}</if>
|
||||
</where>
|
||||
</select>
|
||||
@@ -60,13 +64,14 @@
|
||||
<insert id="insertRmSwitchManagement" parameterType="RmSwitchManagement" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into rm_switch_management
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="switchType != null">switch_type,</if>
|
||||
<if test="switchName != null and switchName != ''">switch_name,</if>
|
||||
<if test="hardwareSn != null and hardwareSn != ''">hardware_sn,</if>
|
||||
<if test="snmpAddress != null and snmpAddress != ''">snmp_address,</if>
|
||||
<if test="snmpPort != null">snmp_port,</if>
|
||||
<if test="onlineStatus != null and onlineStatus != ''">online_status,</if>
|
||||
<if test="heartbeatCount != null">heartbeat_count,</if>
|
||||
<if test="heartbeatInterval != null">heartbeat_interval,</if>
|
||||
<if test="heartbeatCount != null and heartbeatCount != ''">heartbeat_count,</if>
|
||||
<if test="heartbeatInterval != null and heartbeatInterval != ''">heartbeat_interval,</if>
|
||||
<if test="heartbeatOid != null and heartbeatOid != ''">heartbeat_oid,</if>
|
||||
<if test="snmpVersion != null and snmpVersion != ''">snmp_version,</if>
|
||||
<if test="upTime != null">up_time,</if>
|
||||
@@ -74,6 +79,7 @@
|
||||
<if test="securityLevel != null">security_level,</if>
|
||||
<if test="encryptionMethod != null">encryption_method,</if>
|
||||
<if test="communityName != null">community_name,</if>
|
||||
<if test="switchUser != null">switch_user,</if>
|
||||
<if test="switchPassword != null">switch_password,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
@@ -81,13 +87,14 @@
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="switchType != null">#{switchType},</if>
|
||||
<if test="switchName != null and switchName != ''">#{switchName},</if>
|
||||
<if test="hardwareSn != null and hardwareSn != ''">#{hardwareSn},</if>
|
||||
<if test="snmpAddress != null and snmpAddress != ''">#{snmpAddress},</if>
|
||||
<if test="snmpPort != null">#{snmpPort},</if>
|
||||
<if test="onlineStatus != null and onlineStatus != ''">#{onlineStatus},</if>
|
||||
<if test="heartbeatCount != null">#{heartbeatCount},</if>
|
||||
<if test="heartbeatInterval != null">#{heartbeatInterval},</if>
|
||||
<if test="heartbeatCount != null and heartbeatCount != ''">#{heartbeatCount},</if>
|
||||
<if test="heartbeatInterval != null and heartbeatInterval != ''">#{heartbeatInterval},</if>
|
||||
<if test="heartbeatOid != null and heartbeatOid != ''">#{heartbeatOid},</if>
|
||||
<if test="snmpVersion != null and snmpVersion != ''">#{snmpVersion},</if>
|
||||
<if test="upTime != null">#{upTime},</if>
|
||||
@@ -95,6 +102,7 @@
|
||||
<if test="securityLevel != null">#{securityLevel},</if>
|
||||
<if test="encryptionMethod != null">#{encryptionMethod},</if>
|
||||
<if test="communityName != null">#{communityName},</if>
|
||||
<if test="switchUser != null">#{switchUser},</if>
|
||||
<if test="switchPassword != null">#{switchPassword},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
@@ -106,13 +114,14 @@
|
||||
<update id="updateRmSwitchManagement" parameterType="RmSwitchManagement">
|
||||
update rm_switch_management
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="switchType != null">switch_type = #{switchType},</if>
|
||||
<if test="switchName != null and switchName != ''">switch_name = #{switchName},</if>
|
||||
<if test="hardwareSn != null and hardwareSn != ''">hardware_sn = #{hardwareSn},</if>
|
||||
<if test="snmpAddress != null and snmpAddress != ''">snmp_address = #{snmpAddress},</if>
|
||||
<if test="snmpPort != null">snmp_port = #{snmpPort},</if>
|
||||
<if test="onlineStatus != null and onlineStatus != ''">online_status = #{onlineStatus},</if>
|
||||
<if test="heartbeatCount != null">heartbeat_count = #{heartbeatCount},</if>
|
||||
<if test="heartbeatInterval != null">heartbeat_interval = #{heartbeatInterval},</if>
|
||||
<if test="heartbeatCount != null and heartbeatCount != ''">heartbeat_count = #{heartbeatCount},</if>
|
||||
<if test="heartbeatInterval != null and heartbeatInterval != ''">heartbeat_interval = #{heartbeatInterval},</if>
|
||||
<if test="heartbeatOid != null and heartbeatOid != ''">heartbeat_oid = #{heartbeatOid},</if>
|
||||
<if test="snmpVersion != null and snmpVersion != ''">snmp_version = #{snmpVersion},</if>
|
||||
<if test="upTime != null">up_time = #{upTime},</if>
|
||||
@@ -120,6 +129,7 @@
|
||||
<if test="securityLevel != null">security_level = #{securityLevel},</if>
|
||||
<if test="encryptionMethod != null">encryption_method = #{encryptionMethod},</if>
|
||||
<if test="communityName != null">community_name = #{communityName},</if>
|
||||
<if test="switchUser != null">switch_user = #{switchUser},</if>
|
||||
<if test="switchPassword != null">switch_password = #{switchPassword},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
|
||||
Reference in New Issue
Block a user