select obj_id,
plan_code,
order_code,
material_code,
material_name,
station_code,
device_code,
team_code,
plan_amount,
complete_amount,
begin_time,
end_time,
comp_flag,
created_by,
created_time,
updated_by,
updated_time,
plan_begin_time,
plan_end_time
from prod_plan_info
insert into prod_plan_info
plan_code,
order_code,
material_code,
material_name,
station_code,
device_code,
team_code,
plan_amount,
complete_amount,
begin_time,
end_time,
comp_flag,
created_by,
created_time,
updated_by,
updated_time,
plan_begin_time,
plan_end_time,
#{planCode},
#{orderCode},
#{materialCode},
#{materialName},
#{stationCode},
#{deviceCode},
#{teamCode},
#{planAmount},
#{completeAmount},
#{beginTime},
#{endTime},
#{compFlag},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
#{planBeginTime},
#{planEndTime},
update prod_plan_info
plan_code = #{planCode},
order_code = #{orderCode},
material_code = #{materialCode},
material_name = #{materialName},
station_code = #{stationCode},
device_code = #{deviceCode},
team_code = #{teamCode},
plan_amount = #{planAmount},
complete_amount = #{completeAmount},
begin_time = #{beginTime},
end_time = #{endTime},
comp_flag = #{compFlag},
created_by = #{createdBy},
created_time = #{createdTime},
updated_by = #{updatedBy},
updated_time = #{updatedTime},
plan_begin_time = #{planBeginTime},
plan_end_time = #{planEndTime},
where obj_id = #{objId}
delete
from prod_plan_info
where obj_id = #{objId}
delete from prod_plan_info where obj_id in
#{objId}