|
|
|
|
@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="resourcePwd" column="resource_pwd" />
|
|
|
|
|
<result property="registrationStatus" column="registration_status" />
|
|
|
|
|
<result property="onlineStatus" column="online_status" />
|
|
|
|
|
<result property="switchOnlineStatus" column="switch_online_status" />
|
|
|
|
|
<result property="description" column="description" />
|
|
|
|
|
<result property="customerId" column="customer_id" />
|
|
|
|
|
<result property="customerName" column="customer_name" />
|
|
|
|
|
@@ -38,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectRmResourceRegistrationVo">
|
|
|
|
|
select id, hardware_sn, resource_type, resource_name, ip_address, resource_port, other_port_name, agent_version, protocol, resource_version, rw_permission, snmp_detect, team_name, snmp_collect_addr, security_level, encryption, resource_user_name, resource_pwd, registration_status, online_status, description, customer_id, customer_name, service_number, create_time, update_time, creator_id, creator_name, updater_id, updater_name from rm_resource_registration
|
|
|
|
|
select id, hardware_sn, resource_type, resource_name, ip_address, resource_port, other_port_name, agent_version, protocol, resource_version, rw_permission, snmp_detect, team_name, snmp_collect_addr, security_level, encryption, resource_user_name, resource_pwd, registration_status, online_status, switch_online_status, description, customer_id, customer_name, service_number, create_time, update_time, creator_id, creator_name, updater_id, updater_name from rm_resource_registration
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectRmResourceRegistrationList" parameterType="RmResourceRegistration" resultMap="RmResourceRegistrationResult">
|
|
|
|
|
@@ -63,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="resourcePwd != null and resourcePwd != ''"> and resource_pwd = #{resourcePwd}</if>
|
|
|
|
|
<if test="registrationStatus != null and registrationStatus != ''"> and registration_status = #{registrationStatus}</if>
|
|
|
|
|
<if test="onlineStatus != null and onlineStatus != ''"> and online_status = #{onlineStatus}</if>
|
|
|
|
|
<if test="switchOnlineStatus != null and switchOnlineStatus != ''"> and switch_online_status = #{switchOnlineStatus}</if>
|
|
|
|
|
<if test="description != null and description != ''"> and description = #{description}</if>
|
|
|
|
|
<if test="customerId != null "> and customer_id = #{customerId}</if>
|
|
|
|
|
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
|
|
|
|
@@ -102,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="resourcePwd != null">resource_pwd,</if>
|
|
|
|
|
<if test="registrationStatus != null">registration_status,</if>
|
|
|
|
|
<if test="onlineStatus != null">online_status,</if>
|
|
|
|
|
<if test="switchOnlineStatus != null">switch_online_status,</if>
|
|
|
|
|
<if test="description != null">description,</if>
|
|
|
|
|
<if test="customerId != null">customer_id,</if>
|
|
|
|
|
<if test="customerName != null">customer_name,</if>
|
|
|
|
|
@@ -133,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="resourcePwd != null">#{resourcePwd},</if>
|
|
|
|
|
<if test="registrationStatus != null">#{registrationStatus},</if>
|
|
|
|
|
<if test="onlineStatus != null">#{onlineStatus},</if>
|
|
|
|
|
<if test="switchOnlineStatus != null">#{switchOnlineStatus},</if>
|
|
|
|
|
<if test="description != null">#{description},</if>
|
|
|
|
|
<if test="customerId != null">#{customerId},</if>
|
|
|
|
|
<if test="customerName != null">#{customerName},</if>
|
|
|
|
|
@@ -168,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="resourcePwd != null">resource_pwd = #{resourcePwd},</if>
|
|
|
|
|
<if test="registrationStatus != null">registration_status = #{registrationStatus},</if>
|
|
|
|
|
<if test="onlineStatus != null">online_status = #{onlineStatus},</if>
|
|
|
|
|
<if test="switchOnlineStatus != null">switch_online_status = #{switchOnlineStatus},</if>
|
|
|
|
|
<if test="description != null">description = #{description},</if>
|
|
|
|
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
|
|
|
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
|
|
|
@@ -257,6 +262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="resourcePwd != null">resource_pwd = #{resourcePwd},</if>
|
|
|
|
|
<if test="registrationStatus != null">registration_status = #{registrationStatus},</if>
|
|
|
|
|
<if test="onlineStatus != null">online_status = #{onlineStatus},</if>
|
|
|
|
|
<if test="switchOnlineStatus != null">switch_online_status = #{switchOnlineStatus},</if>
|
|
|
|
|
<if test="description != null">description = #{description},</if>
|
|
|
|
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
|
|
|
<if test="customerName != null">customer_name = #{customerName},</if>
|
|
|
|
|
|