select workorder_id, workorder_code, workorder_name, workorder_type, order_source, source_code, product_id, product_code, product_name, product_spc, unit_of_measure,batch_code, quantity,quantity_produced, client_id, client_code, client_name, vendor_id, vendor_code, vendor_name, request_date, parent_id, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from pro_workorder
insert into pro_workorder
workorder_code,
workorder_name,
workorder_type,
order_source,
source_code,
product_id,
product_code,
product_name,
product_spc,
unit_of_measure,
batch_code,
quantity,
quantity_produced,
quantity_changed,
quantity_scheduled,
client_id,
client_code,
client_name,
vendor_id,
vendor_code,
vendor_name,
request_date,
finish_date,
parent_id,
ancestors,
status,
remark,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
#{workorderCode},
#{workorderName},
#{workorderType},
#{orderSource},
#{sourceCode},
#{productId},
#{productCode},
#{productName},
#{productSpc},
#{unitOfMeasure},
#{batchCode},
#{quantity},
#{quantityProduced},
#{quantityChanged},
#{quantityScheduled},
#{clientId},
#{clientCode},
#{clientName},
#{vendorId},
#{vendorCode},
#{vendorName},
#{requestDate},
#{finishDate},
#{parentId},
#{ancestors},
#{status},
#{remark},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update pro_workorder
workorder_code = #{workorderCode},
workorder_name = #{workorderName},
workorder_type = #{workorderType},
order_source = #{orderSource},
source_code = #{sourceCode},
product_id = #{productId},
product_code = #{productCode},
product_name = #{productName},
product_spc = #{productSpc},
unit_of_measure = #{unitOfMeasure},
batch_code = #{batchCode},
quantity = #{quantity},
quantity_produced = #{quantityProduced},
quantity_changed = #{quantityChanged},
quantity_scheduled = #{quantityScheduled},
client_id = #{clientId},
client_code = #{clientCode},
client_name = #{clientName},
vendor_id = #{vendorId},
vendor_code = #{vendorCode},
vendor_name = #{vendorName},
request_date = #{requestDate},
finish_date = #{finishDate},
parent_id = #{parentId},
ancestors = #{ancestors},
status = #{status},
remark = #{remark},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
attr4 = #{attr4},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where workorder_id = #{workorderId}
delete from pro_workorder where workorder_id = #{workorderId}
delete from pro_workorder where workorder_id in
#{workorderId}