select id, plan_code, plan_name, plan_type, state, frequency, dimension, last_generation_time, start_time, end_time, devices, Inspection_items, remarks, create_time, create_user, update_time, update_user, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from em_inspection_plan
insert into em_inspection_plan
plan_code,
plan_name,
plan_type,
state,
frequency,
dimension,
last_generation_time,
start_time,
end_time,
devices,
Inspection_items,
remarks,
create_time,
create_user,
update_time,
update_user,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
#{planCode},
#{planName},
#{planType},
#{state},
#{frequency},
#{dimension},
#{lastGenerationTime},
#{startTime},
#{endTime},
#{devices},
#{inspectionItems},
#{remarks},
#{createTime},
#{createUser},
#{updateTime},
#{updateUser},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
update em_inspection_plan
plan_code = #{planCode},
plan_name = #{planName},
plan_type = #{planType},
state = #{state},
frequency = #{frequency},
dimension = #{dimension},
last_generation_time = #{lastGenerationTime},
start_time = #{startTime},
end_time = #{endTime},
devices = #{devices},
Inspection_items = #{inspectionItems},
remarks = #{remarks},
create_time = #{createTime},
create_user = #{createUser},
update_time = #{updateTime},
update_user = #{updateUser},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
where id = #{id}
delete from em_inspection_plan where id = #{id}
delete from em_inspection_plan where id in
#{id}