From 3f88f0c909e8cb9a8e5dea123e19a7764aae2617 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Mon, 3 Jun 2024 15:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=8F=90=E6=89=AB=E6=8F=8F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistributionDeliveryListController.java | 12 ---- .../DistributionDeliveryListServiceImpl.java | 60 ++++--------------- .../DistributionReservationServiceImpl.java | 41 ++----------- .../DistrilbutionBillLadingServiceImpl.java | 6 +- 4 files changed, 21 insertions(+), 98 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java index dee2731af..8b848b7f0 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java @@ -164,7 +164,6 @@ public class DistributionDeliveryListController extends BladeController { @ApiOperation(value = "查看包件详情", notes = "传入distributionDeliveryList") public R> packdetail(@RequestParam Map distributionDeliveryInfoDTO, Query query) throws ParseException { IPage parcelListEntityList = distributionDeliveryListService.getPackageListByDeliverylistId(Condition.getPage(query), distributionDeliveryInfoDTO); -// IPage pages = distributionDeliveryInfoService.selectDistributionDeliveryInfopackdetail(Condition.getPage(query), distributionDeliveryInfoDTO); return R.data(parcelListEntityList); } @@ -234,17 +233,6 @@ public class DistributionDeliveryListController extends BladeController { } -// /** -// * 配送管理 装车扫描(单件装车) -// */ -// @GetMapping("/singleloading") -// @ApiOperationSupport(order = 2) -// public R singleloading(@Valid @RequestBody DistrilbutionloadingscanDTO distrilbutionloadingscanDTO) { -// R msg = distributionDeliveryListService.singleloading(distrilbutionloadingscanDTO); -// return msg; -// } - - /** * 配送管理 点击发车 */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index 57af1bf4e..390223f36 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -2815,16 +2815,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl logs = new ArrayList<>(); //查询出原来配送信息的备货任务 DistributionStockupVO deliveryStockupInfo = distributionStockupMapper.getDeliveryStockupInfo(deliveryListEntity.getId()); //这里查询出该备货任务的执行情况,如果该任务处于已完成的状态需要创建新的备货任务,其他的备货状态则是进行备货任务的修改 @@ -2862,13 +2854,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl { orderPackageNum.getAndAdd(p.getQuantity()); @@ -3069,7 +3048,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImplquery().lambda() .eq(DistributionSignforEntity::getReservationId, reservationEntity.getId()) @@ -3217,9 +3195,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionReservationPackageEntities = distributionReservationPackageMapper.selectList(new QueryWrapper().lambda() -// .eq(DistributionReservationPackageEntity::getReservationId, reservationEntity.getId()) -// .eq(DistributionReservationPackageEntity::getStockArticleId, s.getId()) -// ); if (Func.isEmpty(list)) { log.error("###########################预约包件查询错误:{}", list); log.error("###########################查询错误预约Id:{}", reservationEntity.getId()); @@ -3513,13 +3484,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl oldPackageList = distributionReservationMapper.selectPackageByReservationAndStockArticle(reservationEntity.getId(), reservationStockarticleEntities.get(0).getStockArticleId()); //进行预约订单中间信息的修改 reservationStockarticleEntity.setReservationNum(packageNum.get()); distributionReservationStockarticleService.updateById(reservationStockarticleEntity); -// oldOrder.remove(s.getId()); //预约订单上的包件数量维护 packageTotal.getAndAdd(reservationStockarticleEntity.getReservationNum()); } @@ -3622,8 +3590,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl - List distributionStockArticleEntityList = distributionStockArticleService.list(Wrappers.query().lambda() - .in(DistributionStockArticleEntity::getId, ls)); + List distributionStockArticleEntityList = distributionStockArticleService.list(Wrappers.query().lambda() + .in(DistributionStockArticleEntity::getId, ls) + .ne(DistributionStockArticleEntity::getIsZero, "1") + ); List list1 = distributionParcelListService.list(Wrappers.query().lambda() .in(DistributionParcelListEntity::getStockArticleId, ls)