select id, route_id, route_num, route_name, start_date, end_date, create_time, org_code, shop_code, productivity_model, design_capacity, del_flag, create_by, update_by, update_time, route_code, standard_time from aps_standard_process_route_line_job
insert into aps_standard_process_route_line_job
id,
route_id,
route_num,
route_name,
start_date,
end_date,
create_time,
org_code,
shop_code,
productivity_model,
design_capacity,
del_flag,
create_by,
update_by,
update_time,
#{id},
#{routeId},
#{routeNum},
#{routeName},
#{startDate},
#{endDate},
#{createTime},
#{orgCode},
#{shopCode},
#{productivityModel},
#{designCapacity},
#{delFlag},
#{createBy},
#{updateBy},
#{updateTime},
update aps_standard_process_route_line_job
route_id = #{routeId},
route_num = #{routeNum},
route_name = #{routeName},
start_date = #{startDate},
end_date = #{endDate},
create_time = #{createTime},
org_code = #{orgCode},
shop_code = #{shopCode},
productivity_model = #{productivityModel},
design_capacity = #{designCapacity},
del_flag = #{delFlag},
create_by = #{createBy},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from aps_standard_process_route_line_job where id = #{id}
delete from aps_standard_process_route_line_job where id in
#{id}
INSERT INTO aps_standard_process_route_line_job (
id,
route_id,
route_num,
route_name,
route_code,
start_date,
end_date,
org_code,
shop_code,
standard_time,
create_by,
create_time
) VALUES
(
#{item.id},
#{item.routeId},
#{item.routeNum},
#{item.routeName},
#{item.routeCode},
#{item.startDate},
#{item.endDate},
#{item.orgCode},
#{item.shopCode},
#{item.standardTime},
#{item.createBy},
now()
)
INSERT INTO aps_standard_process_route_line (
id,
route_id,
route_num,
route_name,
route_code,
start_date,
end_date,
org_code,
shop_code,
standard_time,
create_by,
create_time
)
SELECT
id,
route_id,
route_num,
route_name,
route_code,
start_date,
end_date,
org_code,
shop_code,
standard_time,
create_by,
now()
FROM aps_standard_process_route_line_job
DELETE FROM aps_standard_process_route_line
DELETE FROM aps_standard_process_route_line_job