From 1617119bfe33f7c4f6abefb7f4760c8be33a4f55 Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Thu, 3 Apr 2025 10:03:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=8D=E9=A6=88=E9=87=8D=E9=87=8F?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=B8=BA=E7=A9=BA=E6=89=8D=E5=8F=AF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java index ccf8a28b2..70b7fbb72 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java @@ -2468,6 +2468,13 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { JSONObject res = new JSONObject(); String subVolume = param.getString("sub_volume"); String weight = param.getString("weight1"); + PdmBiSlittingproductionplan containerName = slittingproductionplanService.getByContainerName(subVolume); + if (ObjectUtil.isEmpty(containerName)) { + throw new BadRequestException("子卷号[" + subVolume + "]对应的分切计划不存在!"); + } + if (ObjectUtil.isNotEmpty(containerName.getWeight())) { + throw new BadRequestException("子卷号[" + subVolume + "]不允许重复更新重量!"); + } LambdaUpdateWrapper updateWrapper = new UpdateWrapper().lambda(); updateWrapper.set(PdmBiSlittingproductionplan::getWeight, NumberUtil.round(weight, 2).toString()) .eq(PdmBiSlittingproductionplan::getContainer_name, subVolume);