From 27eb5c0a9c3bc812a5be93502cf761f411246922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=98=8E=E6=85=A7?= <1191093413@qq.com> Date: Fri, 12 Jan 2024 17:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E9=AA=8C=E6=9B=B4=E6=96=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9C=BA=E5=8A=A8=E8=BD=A6=E4=BA=8C=E6=89=8B=E8=BD=A6?= =?UTF-8?q?=E4=B8=93=E9=97=A8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SDNYMainProcessController.java | 2 +- .../impl/SignSaveInvoiceInfoServiceImpl.java | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java index 7a9b1adc..548d1f93 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java @@ -1057,7 +1057,7 @@ public class SDNYMainProcessController extends AbstractController { checkInvoice.put("purchaserAddressPhone", checkInvoice.get("gfAddressAndPhone")); checkInvoice.put("salesName", checkInvoice.get("xfName")); checkInvoice.put("salesTaxNo", checkInvoice.get("xfTaxNo")); - checkInvoice.put("salesAddressPhone", checkInvoice.get("gfAddressAndPhone")); + checkInvoice.put("salesAddressPhone", checkInvoice.get("xfAddressAndPhone")); checkInvoice.put("salesBank", checkInvoice.get("gfBankAndNo")); checkInvoice.put("checkCode", checkInvoice.get("checkCode")); if("1".equals(checkInvoice.get("invoiceStatus"))){ diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java index 67ab4c87..2a1133d9 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java @@ -182,6 +182,42 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl 0) { + boolean deleteStatistics = signInvoiceStatisticsService + .deleteStatistics(recordInvoice.getInvoiceCode(), recordInvoice.getInvoiceNo(), dbName); + if (deleteStatistics) { + signInvoiceStatisticsService.saveInvoiceStatistics(invoiceStatistics, dbName); + } + } + + } + // 二手车 + if (vehicleInvoice != null) { + + boolean deleteVehicleSaleInvoice = + signJdcService.deleteVehicleSaleInvoice(recordInvoice.getUuid(), dbName); + if (deleteVehicleSaleInvoice) { + signJdcService.saveVehicleSaleInvoice(vehicleInvoice, dbName); + } + + // 保存税率统计表 + if (invoiceStatistics.size() > 0) { + signInvoiceStatisticsService.remove(new UpdateWrapper() + .eq("invoice_code", recordInvoice.getInvoiceCode()).eq("invoice_no", recordInvoice.getInvoiceNo())); + signInvoiceStatisticsService.saveBatch(invoiceStatistics); + } + + } } }