delete from ems_site_monitor_point_match
where site_id = #{siteId}
delete from ems_site_monitor_point_match
where site_id = #{siteId}
and device_id = #{deviceId}
insert into ems_site_monitor_point_match
(site_id, field_code, device_id, data_point, fixed_data_point, use_fixed_display, create_by, create_time, update_by, update_time)
values
(#{item.siteId}, #{item.fieldCode}, #{item.deviceId}, #{item.dataPoint}, #{item.fixedDataPoint}, #{item.useFixedDisplay}, #{item.createBy}, now(), #{item.updateBy}, now())