select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, inbound_time, outbound_time, in_rs_sign, in_msg_sign, out_rs_sign, out_msg_sign, collection_time, spare_field1, spare_field2, create_user, create_time, update_user, update_time, beat_time from da_passing_station_collection
insert into da_passing_station_collection
id,
work_order_no,
sfc_code,
product_code,
production_line,
location_code,
equipment_no,
inbound_time,
outbound_time,
in_rs_sign,
in_msg_sign,
out_rs_sign,
out_msg_sign,
collection_time,
spare_field1,
spare_field2,
create_user,
create_time,
update_user,
update_time,
beat_time,
#{id},
#{workOrderNo},
#{sfcCode},
#{productCode},
#{productionLine},
#{locationCode},
#{equipmentNo},
#{inboundTime},
#{outboundTime},
#{inRsSign},
#{inMsgSign},
#{outRsSign},
#{outMsgSign},
#{collectionTime},
#{spareField1},
#{spareField2},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{beatTime},
UPDATE da_passing_station_collection
outbound_time = #{outboundTime},
out_rs_sign = #{outRsSign},
WHERE
sfc_code = #{sfcCode}
AND location_code = #{locationCode}
update da_passing_station_collection
work_order_no = #{workOrderNo},
sfc_code = #{sfcCode},
product_code = #{productCode},
production_line = #{productionLine},
location_code = #{locationCode},
equipment_no = #{equipmentNo},
inbound_time = #{inboundTime},
outbound_time = #{outboundTime},
in_rs_sign = #{inRsSign},
in_msg_sign = #{inMsgSign},
out_rs_sign = #{outRsSign},
out_msg_sign = #{outMsgSign},
collection_time = #{collectionTime},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
create_user = #{createUser},
create_time = #{createTime},
update_user = #{updateUser},
update_time = #{updateTime},
beat_time = #{beatTime},
where id = #{id}
delete from da_passing_station_collection where id = #{id}
delete from da_passing_station_collection where id in
#{id}