select purchase_order_id, purchase_order_number, supplier_code, supplier_name, customer_contact, contact_number, customer_fax, delivery_address, payment_terms, delivery_conditions, delivery_method, purchase_name, billing_date, tax_rate, purchase_category, purchase_commander, customer_order_number, remark_content, close_case_no, close_case_name, close_case_time, confirm_no, confirm_name, confirm_time, audit_no, audit_name, audit_time, approve_no, approve_name, approve_time, first_add_time, update_info_time, standby_one, standby_two from purchase_order
insert into purchase_order
purchase_order_number,
supplier_code,
supplier_name,
customer_contact,
contact_number,
customer_fax,
delivery_address,
payment_terms,
delivery_conditions,
delivery_method,
purchase_name,
billing_date,
tax_rate,
purchase_category,
purchase_commander,
customer_order_number,
remark_content,
close_case_no,
close_case_name,
close_case_time,
confirm_no,
confirm_name,
confirm_time,
audit_no,
audit_name,
audit_time,
approve_no,
approve_name,
approve_time,
first_add_time,
standby_one,
standby_two,
#{purchaseOrderNumber},
#{supplierCode},
#{supplierName},
#{customerContact},
#{contactNumber},
#{customerFax},
#{deliveryAddress},
#{paymentTerms},
#{deliveryConditions},
#{deliveryMethod},
#{purchaseName},
#{billingDate},
#{taxRate},
#{purchaseCategory},
#{purchaseCommander},
#{customerOrderNumber},
#{remarkContent},
#{closeCaseNo},
#{closeCaseName},
#{closeCaseTime},
#{confirmNo},
#{confirmName},
#{confirmTime},
#{auditNo},
#{auditName},
#{auditTime},
#{approveNo},
#{approveName},
#{approveTime},
now(),
#{standbyOne},
#{standbyTwo},
update purchase_order
purchase_order_number = #{purchaseOrderNumber},
supplier_code = #{supplierCode},
supplier_name = #{supplierName},
customer_contact = #{customerContact},
contact_number = #{contactNumber},
customer_fax = #{customerFax},
delivery_address = #{deliveryAddress},
payment_terms = #{paymentTerms},
delivery_conditions = #{deliveryConditions},
delivery_method = #{deliveryMethod},
purchase_name = #{purchaseName},
billing_date = #{billingDate},
tax_rate = #{taxRate},
purchase_category = #{purchaseCategory},
purchase_commander = #{purchaseCommander},
customer_order_number = #{customerOrderNumber},
remark_content = #{remarkContent},
close_case_no = #{closeCaseNo},
close_case_name = #{closeCaseName},
close_case_time = #{closeCaseTime},
confirm_no = #{confirmNo},
confirm_name = #{confirmName},
confirm_time = #{confirmTime},
audit_no = #{auditNo},
audit_name = #{auditName},
audit_time = #{auditTime},
approve_no = #{approveNo},
approve_name = #{approveName},
approve_time = #{approveTime},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
standby_one = #{standbyOne},
standby_two = #{standbyTwo},
where purchase_order_id = #{purchaseOrderId}
delete from purchase_order where purchase_order_id = #{purchaseOrderId}
delete from purchase_order where purchase_order_id in
#{purchaseOrderId}