select ppeu.obj_id, ppeu.order_code, ppeu.plan_code, ppeu.process_code, ppeu.station_code, ppeu.staff_id, ppeu.complete_amount, ppeu.plan_begin_date, ppeu.plan_end_date, ppeu.is_flag, ppeu.created_by, ppeu.created_time, ppeu.updated_by, ppeu.updated_time, ppeu.batch_number, bsi.staff_name, bsi.wage_coefficient, bpl.product_line_name station_name, pod.BeltRequiredLength, pod.SulfurizationArea, pod.RolledFabricArea, pod.RollCoatingArea, pod.FormingArea, bsi.pass_word, bsi.team_code, pod.BeltLengthSpecifications from prod_plan_execute_user ppeu left join base_staff_info bsi on bsi.staff_id = ppeu.staff_id left join base_product_line bpl on bpl.product_line_code = ppeu.station_code left join prod_order_detail pod on ppeu.order_code = pod.SeqNo insert into prod_plan_execute_user order_code, plan_code, process_code, station_code, staff_id, complete_amount, plan_begin_date, plan_end_date, is_flag, created_by, created_time, updated_by, updated_time, #{orderCode}, #{planCode}, #{processCode}, #{stationCode}, #{staffId}, #{completeAmount}, #{planBeginDate}, #{planEndDate}, #{isFlag}, #{createdBy}, #{createdTime}, #{updatedBy}, #{updatedTime}, update prod_plan_execute_user order_code = #{orderCode}, plan_code = #{planCode}, process_code = #{processCode}, station_code = #{stationCode}, staff_id = #{staffId}, complete_amount = #{completeAmount}, plan_begin_date = #{planBeginDate}, plan_end_date = #{planEndDate}, is_flag = #{isFlag}, created_by = #{createdBy}, created_time = #{createdTime}, updated_by = #{updatedBy}, updated_time = #{updatedTime}, where obj_id = #{objId} delete from prod_plan_execute_user where obj_id = #{objId} delete from prod_plan_execute_user where obj_id in #{objId}