From 859a851eff7e6ff347668e915987d76e82c28ba2 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 5 Jul 2024 14:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7BUG=E4=BF=AE=E3=80=81?= =?UTF-8?q?=E6=BB=9E=E7=95=99=E5=8C=85=E6=9D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vo/DistributionRetentionScanVo.java | 16 + .../entity/WarehouseRetentionScanEntity.java | 12 + .../vo/WarehouseRetentionRecordVO.java | 4 +- .../mapper/DistributionDeliveryListMapper.xml | 1 + .../mapper/DistributionStockupMapper.xml | 2 +- .../DistributionDeliveryListServiceImpl.java | 362 ++++++++++-------- .../impl/DistributionSignforServiceImpl.java | 13 +- .../WarehouseRetentionRecordServiceImpl.java | 56 ++- .../WarehouseRetentionScanServiceImpl.java | 13 + 9 files changed, 284 insertions(+), 195 deletions(-) diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionRetentionScanVo.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionRetentionScanVo.java index ede021734..020045a6f 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionRetentionScanVo.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionRetentionScanVo.java @@ -94,6 +94,22 @@ public class DistributionRetentionScanVo { */ private Long waybillId; + + /** + * 装车ID + */ + private Long loadingId; + + /** + * 仓库Id + */ + private Long warehouseId; + + /** + * 仓库名称 + */ + private String warehouseName; + /** * 零担滞留最大数 */ diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java index 1902c6bdf..1bb7b8ec9 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java @@ -241,4 +241,16 @@ public class WarehouseRetentionScanEntity extends TenantEntity { @ApiModelProperty(value = "运单Id") private Long waybillId; + /** + * 仓库Id + */ + @ApiModelProperty(value = "运单Id") + private Long warehouseId; + + /** + * 仓库名称 + */ + @ApiModelProperty(value = "运单Id") + private Long warehouseName; + } diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionRecordVO.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionRecordVO.java index 0885c3974..df0135c8d 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionRecordVO.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseRetentionRecordVO.java @@ -22,6 +22,7 @@ import com.logpm.warehouse.entity.WarehouseRetentionRecordEntity; import lombok.Data; import lombok.EqualsAndHashCode; +import java.io.Serializable; import java.util.List; /** @@ -31,8 +32,7 @@ import java.util.List; * @since 2023-08-09 */ @Data -@EqualsAndHashCode(callSuper = true) -public class WarehouseRetentionRecordVO extends WarehouseRetentionRecordEntity { +public class WarehouseRetentionRecordVO implements Serializable { private static final long serialVersionUID = 1L; diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index 277b0f415..4e782b7e1 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -2029,6 +2029,7 @@ ldpl.waybill_number AS waybillNumber, ldpl.waybill_id AS waybillId, ldpl.order_package_status AS orderPackageStatus, + ldpl.warehouse_id AS warehouseId, 1 AS scanType FROM logpm_distribution_delivery_list AS lddl diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml index b74331657..d4c56d1a5 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml @@ -1083,7 +1083,7 @@ LEFT JOIN logpm_distribution_stockup_info ldsi on ldsi.stockup_id = lds.id LEFT JOIN logpm_distribution_delivery_details lddd on ldsi.reservation_id = lddd.bill_lading_id - ldsi.stockup_id =#{id} and lddd.inventory_status in (1,2) + ldsi.stockup_id =#{id} and lddd.inventory_status in (1,3)