insert into production_scheduling(scheduling_id,
order_id,
order_number,
technology_number,
processes,
scheduling_quantity,
scheduled_start_time,
plan_end_time,
notes,
create_time)
VALUES (#{schedulingId},
#{orderId},
#{orderNumber},
#{technologyNumber},
#{processes},
#{schedulingQuantity},
#{scheduledStartTime},
#{planEndTime},
#{notes},
now())
update production_scheduling
set review_status=1,
reviewer=#{userName},
scheduling_quantity=#{schedulingQuantity},
notes=#{notes}
where scheduling_id = #{schedulingId}
delete
from production_scheduling
where scheduling_id = #{schedulingId}
update production_scheduling set review_status=0 where scheduling_id = #{schedulingId}