select id, work_order_no, sales_order_code,type_z,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, market_area_code, software_version_code, product_company_code, spare_field_1, spare_field_2, spare_field_3, spare_field_4, production_notice from om_production_orde_info
insert into om_production_orde_info
id,
work_order_no,
type_z,
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,
market_area_code,
software_version_code,
product_company_code,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
production_notice,
#{id},
#{workOrderNo},
#{typeZ},
#{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},
#{marketAreaCode},
#{softwareVersionCode},
#{productCompanyCode},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
#{productionNotice},
update om_production_orde_info
work_order_no = #{workOrderNo},
sales_order_code = #{salesOrderCode},
product_code = #{productCode},
type_z = #{typeZ},
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},
market_area_code = #{marketAreaCode},
software_version_code = #{softwareVersionCode},
product_company_code = #{productCompanyCode},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
production_notice = #{productionNotice},
where id = #{id}
delete from om_production_orde_info where id = #{id}
delete from om_production_orde_info where id in
#{id}