parent
8319080ee4
commit
d24be3bcee
@ -0,0 +1,37 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
||||
<mapper namespace="com.dxhy.erp.dao.SdnyTDxRecordInvoiceDetailSalesDao"> |
||||
<insert id="batchInsert"> |
||||
insert into dxhy_detail.t_dx_record_invoice_detail_sales (uuid, invoice_code, invoice_no, |
||||
detail_no, goods_name, model, |
||||
unit, num, unit_price, |
||||
detail_amount, tax_rate, tax_amount, |
||||
cph, lx, txrqq, txrqz, |
||||
goods_num, is_discount, incentive_flag, |
||||
zero_taxrate_flag, added_tax_special, spfwjc, |
||||
sphfwssflhbbm, kce, tax_code |
||||
) |
||||
values |
||||
<foreach collection="data" item="item" separator=","> |
||||
(#{item.uuid,jdbcType=VARCHAR}, #{item.invoiceCode,jdbcType=VARCHAR}, #{item.invoiceNo,jdbcType=VARCHAR}, |
||||
#{item.detailNo,jdbcType=VARCHAR}, #{item.goodsName,jdbcType=VARCHAR}, #{item.model,jdbcType=VARCHAR}, |
||||
#{item.unit,jdbcType=VARCHAR}, #{item.num,jdbcType=VARCHAR}, #{item.unitPrice,jdbcType=VARCHAR}, |
||||
#{item.detailAmount,jdbcType=VARCHAR}, #{item.taxRate,jdbcType=VARCHAR}, #{item.taxAmount,jdbcType=VARCHAR}, |
||||
#{item.cph,jdbcType=VARCHAR}, #{item.lx,jdbcType=VARCHAR}, #{item.txrqq,jdbcType=VARCHAR}, #{item.txrqz,jdbcType=VARCHAR}, |
||||
#{item.goodsNum,jdbcType=VARCHAR}, #{item.isDiscount,jdbcType=VARCHAR}, #{item.incentiveFlag,jdbcType=VARCHAR}, |
||||
#{item.zeroTaxrateFlag,jdbcType=VARCHAR}, #{item.addedTaxSpecial,jdbcType=VARCHAR}, #{item.spfwjc,jdbcType=VARCHAR}, |
||||
#{item.sphfwssflhbbm,jdbcType=VARCHAR}, #{item.kce,jdbcType=VARCHAR}, #{item.taxCode,jdbcType=VARCHAR} |
||||
) |
||||
</foreach> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</insert> |
||||
<delete id="deleteByUUid"> |
||||
|
||||
delete from dxhy_detail.t_dx_record_invoice_detail_sales where uuid=#{uuid} |
||||
|
||||
</delete> |
||||
</mapper> |
Loading…
Reference in new issue