From 8e4cde1b129c711cf56ece7e97b5ccfa7a9ade49 Mon Sep 17 00:00:00 2001 From: yewj Date: Wed, 13 Nov 2024 10:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=B9=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=8C=BA=E5=88=86=E6=94=B6=E8=B4=B9=E4=B8=8E?= =?UTF-8?q?=E9=80=80=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/thrsys/impl/ThrInvOrderServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java index 15e57be32..79cca7e11 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java @@ -131,10 +131,10 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { if (baseResponse.getCode() == 20000) { List list = baseResponse.getData().getList(); if (CollectionUtil.isNotEmpty(list)) { - Map> groupedByInv = list.stream() - .collect(Collectors.groupingBy(ThrInvResultResponse::getInvCode)); - + .collect(Collectors.groupingBy( + item -> item.getInvCode() + "-" + item.getBillType() + )); groupedByInv.forEach((invCode, invResultResponses) -> { String billNo = generateBillNo(filterInvProductRequest);//单据号 //处理 返回实体 转换成 单据 和 单据明细