select id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_code, line_code, processes_code, processes_name , status, remark, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from em_equipment_archives
insert into em_equipment_archives
id,
equipment_code,
equipment_name,
equipment_brand,
equipment_spec,
equipment_type_id,
equipment_type_code,
equipment_type_name,
workshop_code,
line_code,
processes_name,
processes_code,
status,
remark,
create_user,
create_time,
update_user,
update_time,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
#{id},
#{equipmentCode},
#{equipmentName},
#{equipmentBrand},
#{equipmentSpec},
#{equipmentTypeId},
#{equipmentTypeCode},
#{equipmentTypeName},
#{workshopCode},
#{lineCode},
#{processesCode},
#{processesName},
#{status},
#{remark},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
update em_equipment_archives
equipment_code = #{equipmentCode},
equipment_name = #{equipmentName},
equipment_brand = #{equipmentBrand},
equipment_spec = #{equipmentSpec},
equipment_type_id = #{equipmentTypeId},
equipment_type_code = #{equipmentTypeCode},
equipment_type_name = #{equipmentTypeName},
workshop_code = #{workshopCode},
line_code = #{lineCode},
processes_code = #{processesCode},
processes_name = #{processesName},
status = #{status},
remark = #{remark},
create_user = #{createUser},
create_time = #{createTime},
update_user = #{updateUser},
update_time = #{updateTime},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
where id = #{id}
delete from em_equipment_archives where id = #{id}
delete from em_equipment_archives where id in
#{id}