From de6a85db413252c53f60dc292ec373aafaa7c4e4 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Mon, 6 May 2024 10:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E8=BD=AC=E5=A4=87=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DistributionReservationServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java index b5581a9e0..3c3808946 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java @@ -1005,6 +1005,19 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl idsList = distributionReservationEntities.stream().map(DistributionReservationEntity::getId).collect(Collectors.toList()); + List entityList = distributionStockupInfoService.list(Wrappers.query().lambda() + .in(DistributionStockupInfoEntity::getReservationId, idsList) + .ne(DistributionStockupInfoEntity::getStockStatus, "4") + ); + if (!entityList.isEmpty()){ + List stockIds = entityList.stream().map(DistributionStockupInfoEntity::getStockupId).collect(Collectors.toList()); + log.info("批量转备货任务勾选预约存在备货任务>>>>>>>>>>>>>>>>>>>>>>>>>>>>reservationIds:{},stockIds:{}",idsList,stockIds); + List distributionStockupEntities = distributionStockupService.listByIds(stockIds); + String code = distributionStockupEntities.stream().map(DistributionStockupEntity::getStockupCode).collect(Collectors.joining(",")); + return R.fail("勾选预约存在备货任务:"+code); + } + } try { //获取前端携带批量转备货的id