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 83dd8f774..7680cc9bc 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 @@ -229,4 +229,24 @@ public interface DistributionParcelListMapper extends BaseMapper selectPackagePlanBillLading(@Param("orderPackageCode")String orderPackageCode,@Param("warehouseId") Long warehouseId); + + + /** + * 查询自提签收扫描记录 + * @param orderPackageCode + * @param id + * @return + */ + List selectPackageSignForlBillLading(@Param("orderPackageCode")String orderPackageCode,@Param("warehouseId") Long warehouseId); + + + List selectPackageCancelBillLading(@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 304368e29..74d3f9716 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 @@ -1300,6 +1300,85 @@ and ldpl.waybill_number is not null and ldpl.waybill_number != '' - - + + + 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 cf01390c8..f3b6496df 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 @@ -76,6 +76,7 @@ import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.Func; import org.springblade.core.tool.utils.ObjectUtil; import org.springblade.system.cache.DictBizCache; +import org.springblade.system.entity.User; import org.springblade.system.feign.IUserClient; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.BeanUtils; @@ -1024,7 +1025,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl planBillLadingPackage =baseMapper.selectPackagePlanBillLading(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); + if (Func.isNotEmpty(planBillLadingPackage)){ + parcelListNodeVOS.addAll(planBillLadingPackage); + } + //查询自提取消 + List cancelBillLadingPackage =baseMapper.selectPackageCancelBillLading(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); + if (Func.isNotEmpty(cancelBillLadingPackage)){ + cancelBillLadingPackage.forEach(s->{ + R userR = userClient.userInfoById(s.getNodeControlsUserId()); + s.setNodeControlsUserName(userR.getData().getName()); + }); + parcelListNodeVOS.addAll(cancelBillLadingPackage); + } + //查询自提签收扫描 + List signForBillLadingPackage =baseMapper.selectPackageSignForlBillLading(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); + if (Func.isNotEmpty(signForBillLadingPackage)){ + signForBillLadingPackage.forEach(s->{ + R userR = userClient.userInfoById(s.getNodeControlsUserId()); + s.setNodeControlsUserName(userR.getData().getName()); + }); + parcelListNodeVOS.addAll(signForBillLadingPackage); + } //查询计划取消的包件 List cancelPlanDeliveryPackage = baseMapper.selectPackageCancelPlanDelivery(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); if (Func.isNotEmpty(cancelPlanDeliveryPackage)) { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java index d12c5fcf1..6af3dd11c 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java @@ -1019,7 +1019,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl updateWrapper = new UpdateWrapper<>(); updateWrapper.lambda() .in(DistrilbutionBillPackageEntity::getBillLadingId, ids) - .set(DistrilbutionBillPackageEntity::getPacketBarStatus, "3") + .set(DistrilbutionBillPackageEntity::getPacketBarStatus, "2") ; distrilbutionBillPackageService.update(updateWrapper); @@ -1027,7 +1027,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl orderUpdateWrapper = new UpdateWrapper<>(); orderUpdateWrapper.lambda() .in(DistrilbutionBillStockEntity::getBillLadingId, ids) - .set(DistrilbutionBillStockEntity::getOrderStatus, "3") + .set(DistrilbutionBillStockEntity::getOrderStatus, "2") ; distrilbutionBillStockService.update(orderUpdateWrapper); @@ -1047,7 +1047,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl