From 7403e85f44e068e208db74cc5ecfd984d3ea1307 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Tue, 1 Aug 2023 14:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9FI847=E5=92=8CFI849?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/InvoiceAuthServiceImpl.java | 37 +++++++++++++------ .../service/impl/ReceiptOutServiceImpl.java | 1 + 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/InvoiceAuthServiceImpl.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/InvoiceAuthServiceImpl.java index 11c80b9e..2a7247bd 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/InvoiceAuthServiceImpl.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/InvoiceAuthServiceImpl.java @@ -22,6 +22,7 @@ import com.dxhy.erp.service.InvoiceAuthService; import com.dxhy.erp.service.TDxInvoiceReimburseService; import com.dxhy.erp.utils.CheckUtils; import com.dxhy.erp.utils.DateUtil; +import com.google.common.collect.Lists; import com.google.common.collect.Maps; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; @@ -346,11 +347,14 @@ public class InvoiceAuthServiceImpl extends MpBaseServiceImpl exitList = Lists.newArrayList(); + List notExit = Lists.newArrayList(); for (ZDATA zdata1 : zdata) { log.info("zdata1.getZFPHM()===>{}", zdata1.getZFPHM()); String collect = fplxList.stream().collect(Collectors.joining(",")); if (!collect.contains(convertFpzldm(zdata1.getZFPLX()))) { log.info("非增值税先不处理:{}", JSON.toJSONString(zdata1)); + exitList.add(zdata1); continue; } String fphm = zdata1.getZFPHM(); @@ -369,16 +373,18 @@ public class InvoiceAuthServiceImpl extends MpBaseServiceImpl 1) { - es.setZMESSAGE(errorMsg.toString() + "不存在"); - es.setZTYPE("E"); - return es; - } - log.info("zdata={}",zdata); - for (ZDATA zdata1 : zdata) { +// if (errorMsg.length() > 1) { +// es.setZMESSAGE(errorMsg.toString() + "不存在"); +// es.setZTYPE("E"); +// return es; +// } + log.info("exitList={}",exitList); + for (ZDATA zdata1 : exitList) { //成功或者失败标识 boolean flag = false; log.info("zdata1.getZFPHM():{}", zdata1.getZFPHM()); @@ -441,10 +447,17 @@ public class InvoiceAuthServiceImpl extends MpBaseServiceImpl0){ + es.setZTYPE("E"); + errorMsg.append("发票号码:").append(notExit).append("不存在,其余成功"); + es.setZMESSAGE(errorMsg.toString()); + }else { + es.setZMESSAGE("处理成功"); + zdataresp.setPROMSG(promsg.toString()); + zdataresp.setPROTYP("S"); + es.setZdata(zdataresp); + } } return es; } diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ReceiptOutServiceImpl.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ReceiptOutServiceImpl.java index c401c8c6..800aa6e4 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ReceiptOutServiceImpl.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/ReceiptOutServiceImpl.java @@ -62,6 +62,7 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl "0".equals(e.getRzhYesorno())).collect(Collectors.toList()); // second:根据uuids查询出转出明细并转为map,key=uuid ,value=转出明细 List outs = listByUuids(ids); Map outMap =