From af0238f743800df1d09bf66ad752dae0b0027cc8 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Wed, 3 Jan 2024 11:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E8=BD=A6=E6=96=B9=E5=BC=8F=E8=A1=A5?= =?UTF-8?q?=E5=BD=95=E3=80=81=E9=85=8D=E9=80=81=E8=AE=A1=E5=88=92=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=90=9C=E7=B4=A2=E3=80=81=E5=A4=8D=E6=A0=B8=E7=AD=BE?= =?UTF-8?q?=E6=94=B6=E9=87=8A=E6=94=BE=E6=9C=AA=E8=A3=85=E8=BD=A6=E5=92=8C?= =?UTF-8?q?=E6=9C=AA=E7=AD=BE=E6=94=B6=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../loading/LoadingStatusConstant.java | 3 +- .../DistributionReservationPackageEntity.java | 6 ++ ...ributionReservationStockarticleEntity.java | 6 ++ .../DistributionSignforController.java | 8 ++ .../mapper/DistributionParcelListMapper.java | 7 ++ .../mapper/DistributionParcelListMapper.xml | 7 ++ .../mapper/DistributionReservationMapper.java | 8 ++ .../mapper/DistributionReservationMapper.xml | 8 ++ .../mapper/DistributionStockArticleMapper.xml | 6 +- .../mapper/DistributionStockListMapper.java | 7 ++ .../mapper/DistributionStockListMapper.xml | 3 + .../service/IDistributionAsyncService.java | 6 ++ ...ibutionReservationStockarticleService.java | 6 ++ ...stributionReservationStocklistService.java | 6 ++ .../service/IDistributionSignforService.java | 7 ++ .../impl/DistributionAsyncServiceImpl.java | 74 +++++++++++++++++++ .../DistributionDeliveryListServiceImpl.java | 3 + ...ionReservationStockarticleServiceImpl.java | 38 ++++++++++ ...butionReservationStocklistServiceImpl.java | 40 ++++++++++ .../impl/DistributionSignforServiceImpl.java | 59 +++++++++++++++ 20 files changed, 305 insertions(+), 3 deletions(-) diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/loading/LoadingStatusConstant.java b/blade-biz-common/src/main/java/org/springblade/common/constant/loading/LoadingStatusConstant.java index fefc38bae..d120b356f 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/loading/LoadingStatusConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/loading/LoadingStatusConstant.java @@ -10,7 +10,8 @@ public enum LoadingStatusConstant { quxiao("取消","1"), saomiao("扫描","2"), queren("确认","3"), - yijianzhuangche("一键装车","4"); + yijianzhuangche("一键装车","4"), + bulu("补录","5"); /** diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationPackageEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationPackageEntity.java index aae4607b9..5f2cde2a1 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationPackageEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationPackageEntity.java @@ -89,6 +89,12 @@ public class DistributionReservationPackageEntity extends TenantEntity { @ApiModelProperty(value = "包件状态") private String packetBarStatus; + /** + * 包件任务取消状态 0-否 1 -是 + */ + @ApiModelProperty(value = "包件任务取消状态 0-否 1 -是") + private Integer cancelStatus; + } diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationStockarticleEntity.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationStockarticleEntity.java index 7a46a75e0..19d15fb48 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationStockarticleEntity.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionReservationStockarticleEntity.java @@ -76,6 +76,12 @@ public class DistributionReservationStockarticleEntity extends TenantEntity { */ @ApiModelProperty(value = "有无数据源;1-否、2-是") private Integer isHaveData; + + /** + * 任务取消 0-否 1-是 + */ + @ApiModelProperty(value = "任务取消 0-否 1-是") + private Integer cancelStatus; /** * 预留1 */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java index 94a05fd0c..62d7e929a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java @@ -395,8 +395,14 @@ public class DistributionSignforController extends BladeController { @ApiOperation(value = "待签收数字明细详情", notes = "传入ids") public R getNumberDetail(@RequestParam Long signingId,Integer type) { return distributionSignforService.getNumberDetail(signingId,type); + } + @GetMapping("/isSign") + @ApiOperationSupport(order = 7) + @ApiOperation(value = "待签收数字明细详情", notes = "传入ids") + public R isSign(@RequestParam Long signingId) { + return distributionSignforService.isSign(signingId); } @@ -407,6 +413,8 @@ public class DistributionSignforController extends BladeController { + + // /** // * 签收管理 修改签收照片信息 // */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java index 4fa3ce485..ac2963e32 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.java @@ -156,4 +156,11 @@ public interface DistributionParcelListMapper extends BaseMapper getPackageListByMap(@Param("param") Map packageDTO,@Param("warehouseId") Long id); + + /** + * 配送包件资源释放 + * @param packageIds + * @return + */ + int updateOrderPackageInceptionStatus(@Param("packageIds") List packageIds); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml index fa194dfa5..c547a369a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml @@ -1027,6 +1027,13 @@ #{item} + + UPDATE logpm_distribution_parcel_list SET order_package_status = 20 , order_package_reservation_status = 10 + WHERE id in + + #{id} + + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.java index 8203a8be3..50d22b507 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.java @@ -340,4 +340,12 @@ public interface DistributionReservationMapper extends BaseMapper selectPackageByMap(@Param("param") Map packageDTO,@Param("warehouseId") Long warehouseId); + + /** + * 进行包件任务取消 + * @param reservationId + * @param packageIds + * @return + */ + int updatePackageDeliveryStatus(@Param("reservationId") Long reservationId,@Param("packageIds") List packageIds); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml index c65ffe26d..be0339cdf 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionReservationMapper.xml @@ -84,6 +84,14 @@ update logpm_dis_stock_list_detail SET stock_package_status = 2 WHERE reservation_id = #{reservationId} AND id=#{orderPackageId} and is_deleted = 0 + + UPDATE logpm_distribution_reservation_package SET packet_bar_status = 2 ,cancel_status = 1 + WHERE + reservation_id = #{reservationId} and parce_list_id in + + #{id} + +