select id,site_code,product_num,station_code, product_model,result_code,result_text,sf_result ,work_order_no, sales_order_code, product_code, product_name, workshop_code, line_code, route_code, bom_code, recipe_code, plan_qty, actual_qty, bad_qty, scrap_qty, repair_qty, actual_online_qty, online_completion_mark, demand_date, plan_start_time, plan_end_time, actual_start_time, actual_end_time, serial_number, order_status, create_time, update_time, create_user, update_user, remarks, stream_number, custom, material_code, software_version_code, product_company_code, trolley_yard, spare_field2, spare_field3, spare_field4, automatic_ng_flag, automatic_ng_station, automatic_ng_screw_number, artificial_ng_flag from om_production_orde_info
insert into om_production_orde_info
id,
work_order_no,
sales_order_code,
product_code,
product_name,
workshop_code,
line_code,
route_code,
bom_code,
recipe_code,
plan_qty,
actual_qty,
bad_qty,
scrap_qty,
repair_qty,
actual_online_qty,
online_completion_mark,
demand_date,
plan_start_time,
plan_end_time,
actual_start_time,
actual_end_time,
serial_number,
order_status,
create_time,
update_time,
create_user,
update_user,
remarks,
stream_number,
custom,
material_code,
software_version_code,
product_company_code,
trolley_yard,
spare_field_2,
spare_field_3,
spare_field_4,
site_code,
product_num,
station_code,
result_text,
result_code,
sf_result,
product_model,
automatic_ng_flag,
automatic_ng_station,
automatic_ng_screw_number,
artificial_ng_flag,
#{id},
#{workOrderNo},
#{salesOrderCode},
#{productCode},
#{productName},
#{workshopCode},
#{lineCode},
#{routeCode},
#{bomCode},
#{recipeCode},
#{planQty},
#{actualQty},
#{badQty},
#{scrapQty},
#{repairQty},
#{actualOnlineQty},
#{onlineCompletionMark},
#{demandDate},
#{planStartTime},
#{planEndTime},
#{actualStartTime},
#{actualEndTime},
#{serialNumber},
#{orderStatus},
#{createTime},
#{updateTime},
#{createUser},
#{updateUser},
#{remarks},
#{streamNumber},
#{custom},
#{materialCode},
#{softwareVersionCode},
#{productCompanyCode},
#{trolleyYard},
#{spareField2},
#{spareField3},
#{spareField4},
#{siteCode},
#{productNum},
#{stationCode},
#{resultText},
#{resultCode},
#{sfResult},
#{productModel},
#{automaticNgFlag},
#{automaticNgStation},
#{automaticNgScrewNumber},
#{artificialNgFlag},
update om_production_orde_info
work_order_no = #{workOrderNo},
sales_order_code = #{salesOrderCode},
product_code = #{productCode},
product_name = #{productName},
workshop_code = #{workshopCode},
line_code = #{lineCode},
route_code = #{routeCode},
bom_code = #{bomCode},
recipe_code = #{recipeCode},
plan_qty = #{planQty},
actual_qty = #{actualQty},
bad_qty = #{badQty},
scrap_qty = #{scrapQty},
repair_qty = #{repairQty},
actual_online_qty = #{actualOnlineQty},
online_completion_mark = #{onlineCompletionMark},
demand_date = #{demandDate},
plan_start_time = #{planStartTime},
plan_end_time = #{planEndTime},
actual_start_time = #{actualStartTime},
actual_end_time = #{actualEndTime},
serial_number = #{serialNumber},
order_status = #{orderStatus},
create_time = #{createTime},
update_time = #{updateTime},
create_user = #{createUser},
update_user = #{updateUser},
remarks = #{remarks},
stream_number = #{streamNumber},
custom = #{custom},
material_code = #{materialCode},
software_version_code = #{softwareVersionCode},
product_company_code = #{productCompanyCode},
trolley_yard = #{trolleyYard},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
site_code = #{siteCode},
product_num = #{productNum},
station_code = #{stationCode},
result_text = #{resultText},
result_code = #{resultCode},
sf_result = #{sfResult},
product_model = #{productModel},
automatic_ng_flag = #{automaticNgFlag},
automatic_ng_station = #{automaticNgStation},
automatic_ng_screw_number = #{automaticNgScrewNumber},
artificial_ng_flag = #{artificialNgFlag},
where id = #{id}
delete from om_production_orde_info where id = #{id}
delete from om_production_orde_info where id in
#{id}