select invoiceid, Invoiceno, p_code, P_name, HTNO, PAYWAY, invoicedate, sendcompany, getcompany, swater, dwater, totalqty, totalamt, allenamt, opman, box_num, sendway, sendtool, leavechina_date, get_form_no, CIQ_NAME, CPSendID, CRL_NAME, GetMoney_Flag, Koukuan_Amt, KouKuan_MemoText, GetMoney_MemoText, GetMoney_date, getmoney_man, getmoney, tax_invoice_no, tax_print_version, payall, MemoText, ShouldPayDate, Have_APP_AMT from poinvoicehead
insert into poinvoicehead
invoiceid,
Invoiceno,
p_code,
P_name,
HTNO,
PAYWAY,
invoicedate,
sendcompany,
getcompany,
swater,
dwater,
totalqty,
totalamt,
allenamt,
opman,
box_num,
sendway,
sendtool,
leavechina_date,
get_form_no,
CIQ_NAME,
CPSendID,
CRL_NAME,
GetMoney_Flag,
Koukuan_Amt,
KouKuan_MemoText,
GetMoney_MemoText,
GetMoney_date,
getmoney_man,
getmoney,
tax_invoice_no,
tax_print_version,
payall,
MemoText,
ShouldPayDate,
Have_APP_AMT,
#{invoiceid},
#{Invoiceno},
#{pCode},
#{pName},
#{HTNO},
#{PAYWAY},
#{invoicedate},
#{sendcompany},
#{getcompany},
#{swater},
#{dwater},
#{totalqty},
#{totalamt},
#{allenamt},
#{opman},
#{boxNum},
#{sendway},
#{sendtool},
#{leavechinaDate},
#{getFormNo},
#{ciqName},
#{CPSendID},
#{crlName},
#{getmoneyFlag},
#{koukuanAmt},
#{koukuanMemotext},
#{getmoneyMemotext},
#{getmoneyDate},
#{getmoneyMan},
#{getmoney},
#{taxInvoiceNo},
#{taxPrintVersion},
#{payall},
#{MemoText},
#{ShouldPayDate},
#{haveAppAmt},
update poinvoicehead
Invoiceno = #{Invoiceno},
p_code = #{pCode},
P_name = #{pName},
HTNO = #{HTNO},
PAYWAY = #{PAYWAY},
invoicedate = #{invoicedate},
sendcompany = #{sendcompany},
getcompany = #{getcompany},
swater = #{swater},
dwater = #{dwater},
totalqty = #{totalqty},
totalamt = #{totalamt},
allenamt = #{allenamt},
opman = #{opman},
box_num = #{boxNum},
sendway = #{sendway},
sendtool = #{sendtool},
leavechina_date = #{leavechinaDate},
get_form_no = #{getFormNo},
CIQ_NAME = #{ciqName},
CPSendID = #{CPSendID},
CRL_NAME = #{crlName},
GetMoney_Flag = #{getmoneyFlag},
Koukuan_Amt = #{koukuanAmt},
KouKuan_MemoText = #{koukuanMemotext},
GetMoney_MemoText = #{getmoneyMemotext},
GetMoney_date = #{getmoneyDate},
getmoney_man = #{getmoneyMan},
getmoney = #{getmoney},
tax_invoice_no = #{taxInvoiceNo},
tax_print_version = #{taxPrintVersion},
payall = #{payall},
MemoText = #{MemoText},
ShouldPayDate = #{ShouldPayDate},
Have_APP_AMT = #{haveAppAmt},
where invoiceid = #{invoiceid}
delete from poinvoicehead where invoiceid = #{invoiceid}
delete from poinvoicehead where invoiceid in
#{invoiceid}