select id, equipment_code, equipment_name, equipment_brand, equipment_spec, remark, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4, plan_code from em_inspection_plan_archives
insert into em_inspection_plan_archives
equipment_code,
equipment_name,
equipment_brand,
equipment_spec,
remark,
create_user,
create_time,
update_user,
update_time,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
plan_code,
#{equipmentCode},
#{equipmentName},
#{equipmentBrand},
#{equipmentSpec},
#{remark},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
#{planCode},
update em_inspection_plan_archives
equipment_code = #{equipmentCode},
equipment_name = #{equipmentName},
equipment_brand = #{equipmentBrand},
equipment_spec = #{equipmentSpec},
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},
plan_code = #{planCode},
where id = #{id}
delete from em_inspection_plan_archives where id = #{id}
delete from em_inspection_plan_archives where id in
#{id}