From 0cdf7c9f525235528a6ce70e7a712a7f659e8263 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Thu, 28 Dec 2023 18:59:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9B=B4=E6=96=B0=E5=8C=85=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E6=9E=B6=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/DistributionParcelListMapper.java | 2 ++ .../mapper/DistributionParcelListMapper.xml | 5 +++++ .../impl/DistributionParcelListServiceImpl.java | 16 ++++++++-------- 3 files changed, 15 insertions(+), 8 deletions(-) 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..de33c31ab 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,6 @@ public interface DistributionParcelListMapper extends BaseMapper getPackageListByMap(@Param("param") Map packageDTO,@Param("warehouseId") Long id); + + void updateGroundingStatusByOrderPackageCode(@Param("orderPackageCode") String orderPackageCode, @Param("groundingStatus") String groundingStatus, @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 fa194dfa5..81b314e8c 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 @@ -1028,5 +1028,10 @@ + + update logpm_distribution_parcel_list set order_package_grounding_status = #{groundingStatus} + where order_package_code = #{orderPackageCode} + and warehouse_id = #{warehouseId} + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java index 21d37ae18..a93661810 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java @@ -204,16 +204,16 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl queryWrapper = new QueryWrapper<>(); - queryWrapper.eq("order_package_code",orderPackageCode) - .eq("warehouse_id",warehouseId) - .eq("is_deleted",0); - DistributionParcelListEntity parcelListEntity = baseMapper.selectOne(queryWrapper); - parcelListEntity.setOrderPackageGroundingStatus(groundingStatus); - int i = baseMapper.updateById(parcelListEntity); +// QueryWrapper queryWrapper = new QueryWrapper<>(); +// queryWrapper.eq("order_package_code",orderPackageCode) +// .eq("warehouse_id",warehouseId) +// .eq("is_deleted",0); +// DistributionParcelListEntity parcelListEntity = baseMapper.selectOne(queryWrapper); +// parcelListEntity.setOrderPackageGroundingStatus(groundingStatus); +// int i = baseMapper.updateById(parcelListEntity); // 更新状态 - baseMapper.updateOrderPackageCodeById(parcelListEntity.getId(),groundingStatus); + baseMapper.updateGroundingStatusByOrderPackageCode(orderPackageCode,groundingStatus,warehouseId); }catch (Exception e){ // 更新状态报错 log.error(">>>>>> updateGroundingStatus 异常信息",e);