From f03af21c9be56f0c5da792d95641db95bf70f7be Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Fri, 22 Dec 2023 10:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=AD=BE=E6=94=B6=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/DistributionParcelListMapper.java | 8 +++++ .../mapper/DistributionParcelListMapper.xml | 4 +++ .../IDistributionParcelListService.java | 8 +++++ .../DistributionParcelListServiceImpl.java | 5 +++ .../impl/DistributionSignforServiceImpl.java | 35 ++++++++++++++++++- 5 files changed, 59 insertions(+), 1 deletion(-) 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 44481b3fb..66e34731e 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 @@ -140,4 +140,12 @@ public interface DistributionParcelListMapper extends BaseMapper packageIds); + + /** + * 根据二维码查询包件信息 + * @param orderPackageCode + * @param warehouseId + * @return + */ + DistributionParcelListEntity selectByOrderPackageCode(@Param("orderPackageCode") String orderPackageCode,@Param("warehouseId") Long warehouseId); } 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 56b4800cc..f74e32aa7 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 @@ -868,6 +868,10 @@ where order_package_code = #{orderPackageCode} and order_package_status in ('20','30') + update logpm_distribution_parcel_list diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionParcelListService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionParcelListService.java index b9761ee39..5176732fa 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionParcelListService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionParcelListService.java @@ -161,4 +161,12 @@ public interface IDistributionParcelListService extends BaseService parcelListEntities = distributionDeliveryListMapper.selectPackageListByDeliveryListId(distrilbutionloadingscanDTO.getDeliveryId()); //该货物是否属于该计划 List distributionParcelListEntities = parcelListEntities.stream().filter(p -> p.getOrderPackageCode().equals(distrilbutionloadingscanDTO.getBarcode())).collect(Collectors.toList()); + if (Func.isNotEmpty(distributionParcelListEntities) && distributionParcelListEntities.size() == 1) { //这里按道理也具备签收条件,需要标注该装车记录不正常 log.error("#####################distributionParcelListEntities窜货", distributionParcelListEntities); @@ -802,7 +808,13 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl distributionLoadscanEntities = distributionLoadscanMapper.selectList(new QueryWrapper().lambda() // .ne(DistributionLoadscanEntity::getScanStatus, 1) // .eq(DistributionLoadscanEntity::getReservationId, distrilbutionloadingscanDTO.getReservationId())