select id, plan_no, purchase_no, supplier_code, supplier_name, machine_code,
internal_model, quantity, adjustment_time, price, total_amount,
warehouse_code, warehouse_name, create_by, create_time, update_by,
update_time, remark, del_flag
from purchase_order
insert into purchase_order(
plan_no, purchase_no, supplier_code, supplier_name, machine_code, internal_model,
quantity, adjustment_time, price, total_amount, warehouse_code, warehouse_name,
create_by, create_time, remark, del_flag
) values (
#{planNo}, #{purchaseNo}, #{supplierCode}, #{supplierName}, #{machineCode}, #{internalModel},
#{quantity}, #{adjustmentTime}, #{price}, #{totalAmount}, #{warehouseCode}, #{warehouseName},
#{createBy}, sysdate(), #{remark}, '0'
)
update purchase_order
plan_no = #{planNo},
purchase_no = #{purchaseNo},
supplier_code = #{supplierCode},
supplier_name = #{supplierName},
machine_code = #{machineCode},
internal_model = #{internalModel},
quantity = #{quantity},
adjustment_time = #{adjustmentTime},
price = #{price},
total_amount = #{totalAmount},
warehouse_code = #{warehouseCode},
warehouse_name = #{warehouseName},
update_by = #{updateBy},
update_time = sysdate()
where id = #{id}
update purchase_order set del_flag = '2' where id in
#{id}