From d1792896c0326c30884abb97d127d8f5384b44ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=90=A6?= Date: Fri, 22 Sep 2023 15:18:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E9=A1=B9=E5=8F=91=E7=A5=A8=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dxhy/erp/service/impl/ImageSubmitServiceImpl.java | 1 + .../resources/mapper/SdnyTDxRecordInvoiceDetailSalesDao.xml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ImageSubmitServiceImpl.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ImageSubmitServiceImpl.java index 1d6f735a..75cd0f67 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ImageSubmitServiceImpl.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ImageSubmitServiceImpl.java @@ -142,6 +142,7 @@ public class ImageSubmitServiceImpl implements ImageSubmitService { saleRecordInvoice.setId(null); DynamicContextHolder.push(DbConstant.BUSINESS_WRITE); sdnyTDxSaleRecordInvoiceDao.insert(saleRecordInvoice); + DynamicContextHolder.push(DbConstant.DETAIL_READ); detailSalesDao.deleteByUUid(invoice.getUuid()); detailSalesDao.batchInsert(salesDetailList); } else { diff --git a/dxhy-erp/src/main/resources/mapper/SdnyTDxRecordInvoiceDetailSalesDao.xml b/dxhy-erp/src/main/resources/mapper/SdnyTDxRecordInvoiceDetailSalesDao.xml index 2786cdb0..55250ae8 100644 --- a/dxhy-erp/src/main/resources/mapper/SdnyTDxRecordInvoiceDetailSalesDao.xml +++ b/dxhy-erp/src/main/resources/mapper/SdnyTDxRecordInvoiceDetailSalesDao.xml @@ -2,7 +2,7 @@ - insert into dxhy_detail.t_dx_record_invoice_detail_sales (uuid, invoice_code, invoice_no, + insert into 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, @@ -31,7 +31,7 @@ - delete from dxhy_detail.t_dx_record_invoice_detail_sales where uuid=#{uuid} + delete from t_dx_record_invoice_detail_sales where uuid=#{uuid} \ No newline at end of file