From 37793146b8e43cf0c9db96cf3f3e03102a69414c Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Fri, 28 Feb 2025 16:43:04 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E6=98=A0=E5=B0=84=E5=93=81?= =?UTF-8?q?=E7=B1=BB=E5=AD=90=E7=B1=BB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/OpenOrderServiceImpl.java | 22 ++++++++++++++++++- .../impl/TrunklineCarsLoadServiceImpl.java | 14 ++++++------ 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java index f94ea784b..7c30ca8ed 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java @@ -4831,7 +4831,27 @@ public class OpenOrderServiceImpl implements IOpenOrderService { @Override public R findAdvanceDetailListByWaybillId(AdvanceDTO advanceDTO) { - List advanceDetailVOList = advanceDetailService.findAdvanceDetailListByWaybillId(advanceDTO); + List advanceDetailVOList = new ArrayList<>(); + + Long clientId = advanceDTO.getClientId(); + if(!Objects.isNull(clientId)){ + Long waybillId = advanceDTO.getWaybillId(); + + List trunklineAdvanceEntityList = trunklineWaybillOrderService.findListByWaybillId(waybillId); + //取出trunklineAdvanceEntityList中的所有id放入一个List + List advanceIds = trunklineAdvanceEntityList.stream().map(TrunklineAdvanceEntity::getId).collect(Collectors.toList()); + + BasicdataClientEntity basicdataClientEntity = basicdataClientClient.findEntityById(clientId); + if(!Objects.isNull(basicdataClientEntity)){ + advanceDTO.setMainId(basicdataClientEntity.getMainId()); + advanceDTO.setAdvanceIds(advanceIds); + advanceDetailVOList = advanceDetailService.findAdvanceDetailListByAdvanceIds(advanceDTO); + }else{ + advanceDetailVOList = advanceDetailService.findAdvanceDetailListByWaybillId(advanceDTO); + } + }else{ + advanceDetailVOList = advanceDetailService.findAdvanceDetailListByWaybillId(advanceDTO); + } return R.data(advanceDetailVOList); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java index 4cf3a8f31..924b3ffa7 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java @@ -11533,13 +11533,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl