From af3a6ee1812444686913c6ccc41ee04caa0459ca Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Fri, 20 Dec 2024 23:48:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E9=85=8D=E9=80=81=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 优化配送明细广播推送 --- .../receiver/report/PlanReportListener.java | 2 +- .../DistributionDeliveryListServiceImpl.java | 23 ++++++++++--------- .../impl/DistributionSignforServiceImpl.java | 3 +++ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java index c18e1c7ca..3fa2807f6 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java @@ -81,7 +81,7 @@ public class PlanReportListener implements ReportService { for (ReservationVO reservationVO : reservationVOList) { List details = reservationVO.getPackageDataList(); if (CollUtil.isNotEmpty(details)) { - totalNum = totalNum + 1; + totalNum = totalNum + details.size(); } } if (CollUtil.isNotEmpty(reservationCodeSet)) { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index caebc5e37..8b1122951 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -1247,7 +1247,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl broadcastDataByZeroOrderAndParcId = baseMapper.getBroadcastDataByZeroOrderAndParcId(distributionLoadscanEntity.getDeliveryId(), distributionLoadscanEntity.getWarehouseId(), distributionLoadscanEntity.getPackageId()); - PackageData packageData = BeanUtil.copy(broadcastDataByZeroOrderAndParcId, PackageData.class); - assert packageData != null; - packageData.setBrand(Convert.toStr(broadcastDataByZeroOrderAndParcId.get("brandName"))); - PackageTypeEnums type = PackageTypeEnums.LTL; - packageData.setPackageType(type); - packageData.setProductName(Convert.toStr(broadcastDataByZeroOrderAndParcId.get("productName"))); - packageData.setNumber(distributionLoadscanEntity.getLoadedNub()); - data.add(packageData); - + if(ObjectUtil.isNotEmpty(broadcastDataByZeroOrderAndParcId)){ + PackageData packageData = BeanUtil.copy(broadcastDataByZeroOrderAndParcId, PackageData.class); + assert packageData != null; + packageData.setBrand(Convert.toStr(broadcastDataByZeroOrderAndParcId.get("brandName"))); + PackageTypeEnums type = PackageTypeEnums.LTL; + packageData.setPackageType(type); + packageData.setProductName(Convert.toStr(broadcastDataByZeroOrderAndParcId.get("productName"))); + packageData.setNumber(distributionLoadscanEntity.getLoadedNub()); + data.add(packageData); + } } distributionLoadVO.setPackageDataList(data); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index 2a46e08d6..7c3242837 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -3319,6 +3319,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl