From 470a0ecf5f2f3cd979a420ddc0db45042b926dc1 Mon Sep 17 00:00:00 2001 From: WangQi <1021674882@qq.com> Date: Tue, 11 Jul 2023 23:45:49 +0800 Subject: [PATCH] =?UTF-8?q?V1.0.7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SignSaveInvoiceInfoServiceImpl.java | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) 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 7c95def7..6cdb85ae 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 @@ -27,9 +27,8 @@ import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.math.BigDecimal; import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; +import java.util.*; +import java.util.stream.Collectors; /** * 保存发票查验结果业务处理实现类 @@ -296,6 +295,8 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl invoiceDetailList = new ArrayList<>(dataArray.size()); + + ArrayList taxRateArr = new ArrayList<>(); for (int i = 0; i < dataArray.size(); i++) { JSONObject invoiceDetailQuery = dataArray.getJSONObject(i); TDxRecordInvoiceDetail invoiceDetail = new TDxRecordInvoiceDetail(); @@ -327,13 +328,14 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl