id, site_id, customer_id, building_id, collector_no, concentrator_id, device_type,
address, `status`, remark, date_create, date_update, create_by, update_by
insert into sc_collector
site_id,
customer_id,
building_id,
collector_no,
concentrator_id,
device_type,
address,
`status`,
remark,
date_create,
date_update,
create_by,
update_by,
#{siteId},
#{customerId},
#{buildingId},
#{collectorNo},
#{concentratorId},
#{deviceType},
#{address},
#{status},
#{remark},
#{dateCreate},
#{dateUpdate},
#{createBy},
#{updateBy},
update sc_collector
site_id = #{siteId},
customer_id = #{customerId},
building_id = #{buildingId},
collector_no = #{collectorNo},
concentrator_id = #{concentratorId},
device_type = #{deviceType},
address = #{address},
`status` = #{status},
remark = #{remark},
date_create = #{dateCreate},
date_update = #{dateUpdate},
create_by = #{createBy},
update_by = #{updateBy},
where id = #{id}
insert into sc_collector
(site_id, customer_id, building_id, collector_no, concentrator_id, device_type, address,
`status`, remark, date_create, date_update, create_by, update_by)
values
(#{item.siteId}, #{item.customerId}, #{item.buildingId}, #{item.collectorNo}, #{item.concentratorId},
#{item.deviceType}, #{item.address}, #{item.status}, #{item.remark}, #{item.dateCreate},
#{item.dateUpdate}, #{item.createBy}, #{item.updateBy})