select id, point_name, match_table, match_field, site_id, device_category, data_point, data_point_name, data_device, data_unit, ip_address, ip_port, data_type, need_diff_device_id, create_by, create_time, update_by, update_time, remark from ems_point_match insert into ems_point_match point_name, match_table, match_field, site_id, device_category, data_point, data_point_name, data_device, data_unit, ip_address, ip_port, data_type, need_diff_device_id, create_by, create_time, update_by, update_time, remark, #{pointName}, #{matchTable}, #{matchField}, #{siteId}, #{deviceCategory}, #{dataPoint}, #{dataPointName}, #{dataDevice}, #{dataUnit}, #{ipAddress}, #{ipPort}, #{dataType}, #{needDiffDeviceId}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update ems_point_match point_name = #{pointName}, match_table = #{matchTable}, match_field = #{matchField}, site_id = #{siteId}, device_category = #{deviceCategory}, data_point = #{dataPoint}, data_point_name = #{dataPointName}, data_device = #{dataDevice}, data_unit = #{dataUnit}, ip_address = #{ipAddress}, ip_port = #{ipPort}, data_type = #{dataType}, need_diff_device_id = #{needDiffDeviceId}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from ems_point_match where id = #{id} delete from ems_point_match where id in #{id} and cluster_device_id = #{clusterDeviceId} AND ( ( site_id = #{siteId} AND device_id IN #{deviceId} ) ) AND site_id IN #{siteId}