From 0504f4d58f854b394ba0ac1c7f7dcce7a0088b78 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Tue, 8 Aug 2023 10:18:02 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A4=87=E8=B4=A7=E6=89=93=E5=8D=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AE=A2=E6=88=B7=E5=9C=B0=E5=9D=80=202.=E5=A4=87?= =?UTF-8?q?=E8=B4=A7=E8=AE=A2=E5=88=B6=E5=93=81=E5=8C=85=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E7=89=A9=E6=96=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vo/DistributionStockupOrderInfoVO.java | 2 ++ .../vo/DistributionStockupStockListInfoVO.java | 1 + .../com/logpm/distribution/vo/PackageStockupVO.java | 5 +++++ .../mapper/DistributionStockListMapper.xml | 1 + .../service/impl/DistributionStockupServiceImpl.java | 11 +++++++++++ 5 files changed, 20 insertions(+) diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupOrderInfoVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupOrderInfoVO.java index 6510c9cab..6fc89f44b 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupOrderInfoVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupOrderInfoVO.java @@ -13,6 +13,8 @@ public class DistributionStockupOrderInfoVO implements Serializable { private String customer;//客户 + private String address;//地址 + private Integer planNum;//计划件数 private Integer scanNum;//备货件数 diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupStockListInfoVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupStockListInfoVO.java index 228e1df26..07420b7f9 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupStockListInfoVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupStockListInfoVO.java @@ -14,6 +14,7 @@ public class DistributionStockupStockListInfoVO implements Serializable { private Long stockListId;//库存品id private String customer;//客户 + private String deliveryAddress;//地址 private Integer planNum;//计划件数 diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java index 014b67253..f04a83cf3 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java @@ -1,8 +1,11 @@ package com.logpm.distribution.vo; +import com.logpm.distribution.entity.DistributionParcelDetailsEntity; import lombok.Data; import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; @Data public class PackageStockupVO implements Serializable { @@ -21,4 +24,6 @@ public class PackageStockupVO implements Serializable { private Long scanId;//扫码记录id + private List detailsEntities = new ArrayList<>(); + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml index e57dae62f..a8815bb84 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockListMapper.xml @@ -170,6 +170,7 @@ select ldr.id reservationId, ldsl.id stockListId, ldr.consignee customer, + ldr.delivery_address deliveryAddress, ldr.goods_area_name stockupArea, ldrs.reservation_num planNum, ldsl.storage_location warehouseArea, diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java index 842d6be22..12aa79983 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java @@ -18,6 +18,7 @@ package com.logpm.distribution.service.impl; import com.alibaba.fastjson.JSON; import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -25,6 +26,7 @@ import com.logpm.basicdata.entity.BasicdataWarehouseEntity; import com.logpm.basicdata.feign.IBasicdataCodeClient; import com.logpm.basicdata.feign.IBasicdataWarehouseClient; import com.logpm.distribution.dto.app.StockupDTO; +import com.logpm.distribution.entity.DistributionParcelDetailsEntity; import com.logpm.distribution.entity.DistributionReservationEntity; import com.logpm.distribution.entity.DistributionStockupEntity; import com.logpm.distribution.excel.DistributionStockupExcel; @@ -80,6 +82,9 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl selectDistributionStockupPage(IPage page, DistributionStockupVO distributionStockup) { @@ -343,10 +348,16 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl qw = new QueryWrapper<>(); + qw.eq("package_code",orderPackageCode); + List parcelDetailsEntityList = distributionParcelDetailsService.list(qw); + vo.setDetailsEntities(parcelDetailsEntityList); } DistributionStockupOrderInfoVO vo = new DistributionStockupOrderInfoVO(); vo.setReservationId(reservationId); vo.setCustomer(reservationEntity.getConsignee()); + vo.setAddress(reservationEntity.getDeliveryAddress()); vo.setPlanNum(size); vo.setScanNum(scanNum); vo.setStockupArea(reservationEntity.getGoodsAreaName());