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,
snmp_collect_port, 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, client_id, operator,
province, public_ip, business_name, logical_node_id, multi_public_ip_status, heartbeat_count,
heartbeat_interval, onboard_time 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,
snmp_collect_port,
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,
client_id,
operator,
province,
public_ip,
business_name,
logical_node_id,
multi_public_ip_status,
heartbeat_count,
heartbeat_interval,
onboard_time,
#{hardwareSn},
#{resourceType},
#{resourceName},
#{ipAddress},
#{resourcePort},
#{otherPortName},
#{agentVersion},
#{protocol},
#{resourceVersion},
#{rwPermission},
#{snmpDetect},
#{teamName},
#{snmpCollectAddr},
#{snmpCollectPort},
#{securityLevel},
#{encryption},
#{resourceUserName},
#{resourcePwd},
#{registrationStatus},
#{onlineStatus},
#{switchOnlineStatus},
#{description},
#{customerId},
#{customerName},
#{serviceNumber},
#{createTime},
#{updateTime},
#{creatorId},
#{creatorName},
#{updaterId},
#{updaterName},
#{clientId},
#{operator},
#{province},
#{publicIp},
#{businessName},
#{logicalNodeId},
#{multiPublicIpStatus},
#{heartbeatCount},
#{heartbeatInterval},
#{onboardTime},
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},
snmp_collect_port = #{snmpCollectPort},
security_level = #{securityLevel},
encryption = #{encryption},
resource_user_name = #{resourceUserName},
resource_pwd = #{resourcePwd},
registration_status = #{registrationStatus},
online_status = #{onlineStatus},
switch_online_status = #{switchOnlineStatus},
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},
client_id = #{clientId},
operator = #{operator},
province = #{province},
public_ip = #{publicIp},
business_name = #{businessName},
logical_node_id = #{logicalNodeId},
multi_public_ip_status = #{multiPublicIpStatus},
heartbeat_count = #{heartbeatCount},
heartbeat_interval = #{heartbeatInterval},
onboard_time = #{onboardTime},
where id = #{id}
delete from rm_resource_registration where id = #{id}
delete from rm_resource_registration where id in
#{id}
update rm_resource_registration
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},
snmp_collect_port = #{snmpCollectPort},
security_level = #{securityLevel},
encryption = #{encryption},
resource_user_name = #{resourceUserName},
resource_pwd = #{resourcePwd},
registration_status = #{registrationStatus},
online_status = #{onlineStatus},
switch_online_status = #{switchOnlineStatus},
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},
client_id = #{clientId},
operator = #{operator},
province = #{province},
public_ip = #{publicIp},
business_name = #{businessName},
logical_node_id = #{logicalNodeId},
multi_public_ip_status = #{multiPublicIpStatus},
heartbeat_count = #{heartbeatCount},
heartbeat_interval = #{heartbeatInterval},
onboard_time = #{onboardTime},
and hardware_sn = #{hardwareSn}
and client_id = #{clientId}
and 1=0