From 2b873d0749f59f8e38b8a03eb09a1255b10ddbd5 Mon Sep 17 00:00:00 2001 From: liuxy Date: Fri, 16 Aug 2024 18:57:52 +0800 Subject: [PATCH] =?UTF-8?q?rev=EF=BC=9A=E6=89=93=E5=8D=B0=E7=BA=B8?= =?UTF-8?q?=E7=AE=A1=E9=87=8D=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/b_lms/pda/service/impl/PrintTableTwoServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/pda/service/impl/PrintTableTwoServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/pda/service/impl/PrintTableTwoServiceImpl.java index 6b1e67a60..cfb707535 100644 --- a/lms/nladmin-system/src/main/java/org/nl/b_lms/pda/service/impl/PrintTableTwoServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/pda/service/impl/PrintTableTwoServiceImpl.java @@ -210,11 +210,11 @@ public class PrintTableTwoServiceImpl implements PrintTableTwoService { } // 校验信息 - if (ObjectUtil.isEmpty(jsonPlan.getString("paper_weight"))) { - throw new BadRequestException("子卷号:" + pcsn + "子管重量不能为空!(分切计划工单)"); + if (ObjectUtil.isEmpty(jsonPlan.getString("paper_weight")) || jsonPlan.getDoubleValue("paper_weight") == 0) { + throw new BadRequestException("子卷号:" + pcsn + "纸管重量不能为空!(分切计划工单)"); } if (ObjectUtil.isEmpty(subDao.getThickness_request()) || ObjectUtil.isEmpty(subDao.getWidth_standard())) { - throw new BadRequestException("子卷号:" + pcsn + "规格不能为空!(子卷下线记录)"); + throw new BadRequestException("子卷号:" + pcsn + "规格不能为空或为0!(子卷下线记录)"); } if (ObjectUtil.isEmpty(orderDao.getRollingType())) { throw new BadRequestException("子卷号:" + pcsn + "毛面/光面不能为空!(订单BOM记录)");