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);//单据号 //处理 返回实体 转换成 单据 和 单据明细