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
insert into rm_resource_registration
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,
#{hardwareSn},
#{resourceType},
#{resourceName},
#{ipAddress},
#{resourcePort},
#{otherPortName},
#{agentVersion},
#{protocol},
#{resourceVersion},
#{rwPermission},
#{snmpDetect},
#{teamName},
#{snmpCollectAddr},
#{securityLevel},
#{encryption},
#{resourceUserName},
#{resourcePwd},
#{registrationStatus},
#{onlineStatus},
#{description},
#{customerId},
#{customerName},
#{serviceNumber},
#{createTime},
#{updateTime},
#{creatorId},
#{creatorName},
#{updaterId},
#{updaterName},
update rm_resource_registration
hardware_sn = #{hardwareSn},
resource_type = #{resourceType},
resource_name = #{resourceName},
ip_address = #{ipAddress},
resource_port = #{resourcePort},
other_port_name = #{otherPortName},
agent_version = #{agentVersion},
protocol = #{protocol},
resource_version = #{resourceVersion},
rw_permission = #{rwPermission},
snmp_detect = #{snmpDetect},
team_name = #{teamName},
snmp_collect_addr = #{snmpCollectAddr},
security_level = #{securityLevel},
encryption = #{encryption},
resource_user_name = #{resourceUserName},
resource_pwd = #{resourcePwd},
registration_status = #{registrationStatus},
online_status = #{onlineStatus},
description = #{description},
customer_id = #{customerId},
customer_name = #{customerName},
service_number = #{serviceNumber},
create_time = #{createTime},
update_time = #{updateTime},
creator_id = #{creatorId},
creator_name = #{creatorName},
updater_id = #{updaterId},
updater_name = #{updaterName},
where id = #{id}
delete from rm_resource_registration where id = #{id}
delete from rm_resource_registration where id in
#{id}
update rm_resource_registration
hardware_sn = #{hardwareSn},
resource_type = #{resourceType},
resource_name = #{resourceName},
ip_address = #{ipAddress},
resource_port = #{resourcePort},
other_port_name = #{otherPortName},
agent_version = #{agentVersion},
protocol = #{protocol},
resource_version = #{resourceVersion},
rw_permission = #{rwPermission},
snmp_detect = #{snmpDetect},
team_name = #{teamName},
snmp_collect_addr = #{snmpCollectAddr},
security_level = #{securityLevel},
encryption = #{encryption},
resource_user_name = #{resourceUserName},
resource_pwd = #{resourcePwd},
registration_status = #{registrationStatus},
online_status = #{onlineStatus},
description = #{description},
customer_id = #{customerId},
customer_name = #{customerName},
service_number = #{serviceNumber},
create_time = #{createTime},
update_time = #{updateTime},
creator_id = #{creatorId},
creator_name = #{creatorName},
updater_id = #{updaterId},
updater_name = #{updaterName},
where ip_address = #{ipAddress}