select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, param_code, param_value, param_upper, param_lower, param_standard, collection_time, module_code, spare_field2, create_user, create_time, update_user, update_time, state, param_name, unit, type, parameter_set_code, parameter_set_name, processes_code, processes_name from da_param_collection_temp
insert into da_param_collection_temp
work_order_no,
sfc_code,
product_code,
production_line,
location_code,
equipment_no,
param_code,
param_value,
param_upper,
param_lower,
param_standard,
collection_time,
module_code,
spare_field2,
create_user,
create_time,
update_user,
update_time,
state,
param_name,
unit,
type,
parameter_set_code,
parameter_set_name,
processes_code,
processes_name,
#{workOrderNo},
#{sfcCode},
#{productCode},
#{productionLine},
#{locationCode},
#{equipmentNo},
#{paramCode},
#{paramValue},
#{paramUpper},
#{paramLower},
#{paramStandard},
#{collectionTime},
#{moduleCode},
#{spareField2},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{state},
#{paramName},
#{unit},
#{type},
#{parameterSetCode},
#{parameterSetName},
#{processesCode},
#{processesName},
update da_param_collection_temp
work_order_no = #{workOrderNo},
sfc_code = #{sfcCode},
product_code = #{productCode},
production_line = #{productionLine},
location_code = #{locationCode},
equipment_no = #{equipmentNo},
param_code = #{paramCode},
param_value = #{paramValue},
param_upper = #{paramUpper},
param_lower = #{paramLower},
param_standard = #{paramStandard},
collection_time = #{collectionTime},
module_code = #{moduleCode},
spare_field2 = #{spareField2},
create_user = #{createUser},
create_time = #{createTime},
update_user = #{updateUser},
update_time = #{updateTime},
state = #{state},
param_name = #{paramName},
unit = #{unit},
type = #{type},
parameter_set_code = #{parameterSetCode},
parameter_set_name = #{parameterSetName},
processes_code = #{processesCode},
processes_name = #{processesName},
where id = #{id}
delete from da_param_collection_temp where id = #{id}
delete from da_param_collection_temp where sfc_code = #{sfcCode} and location_code = #{locationCode}
delete from da_param_collection_temp where id in
#{id}