INSERT INTO pay_invoice_printed(
print_no,
old_invoice_code,
old_invoice_no,
payseriesno,
account_id,
total_print_amount,
total_amount,
invoice_amount,
invoice_code,
invoice_no,
ciphertext,
check_code,
print_date,
state,
invoice_type,
type,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
message,
order_no,
pdf_url,
jpg_url,
buyername,
taxnum,
canceltime,
invoice_line,
fpqqlsh,
sendtype,
site_id,
customer_id,
usercode,
cancelinvoice_id,
saleidentity
) VALUES (
#{printNo},
#{oldInvoiceCode},
#{oldInvoiceNo},
#{payseriesno},
#{accountId},
#{totalPrintAmount},
#{totalAmount},
#{invoiceAmount},
#{invoiceCode},
#{invoiceNo},
#{ciphertext},
#{checkCode},
#{printDate},
#{state},
#{invoiceType},
#{type},
#{createBy},
#{createDate},
#{updateBy},
#{updateDate},
#{remarks},
#{delFlag},
#{message},
#{orderNo},
#{pdfUrl},
#{jpgUrl},
#{buyername},
#{taxnum},
#{canceltime},
#{invoiceLine},
#{fpqqlsh},
#{sendtype},
#{siteId},
#{customerId},
#{userCode},
#{cancelInvoiceId},
#{saleIdentity}
)
update pay_invoice_printed
state=#{payInvoiceprinted.state},
order_no=#{payInvoiceprinted.orderNo},
invoice_code=#{payInvoiceprinted.invoiceCode},
print_date=#{payInvoiceprinted.printDate},
invoice_no=#{payInvoiceprinted.invoiceNo},
message=#{payInvoiceprinted.message},
total_amount=#{payInvoiceprinted.totalAmount},
invoice_amount=#{payInvoiceprinted.invoiceAmount},
total_print_amount=#{payInvoiceprinted.totalPrintAmount},
check_code=#{payInvoiceprinted.checkCode},
pdf_url=#{payInvoiceprinted.pdfUrl},
jpg_url=#{payInvoiceprinted.jpgUrl},
remarks=#{payInvoiceprinted.remarks},
buyername=#{payInvoiceprinted.buyername},
taxnum=#{payInvoiceprinted.taxnum},
where id=#{payInvoiceprinted.id,jdbcType=BIGINT}
update pay_pay_received set isprint=#{isPrint}
where payseriesno=#{payseriesno} and customer_id=#{customerId}