From 7ebec5bbe232c45bdd630e2dc2dacdd8a4332ea4 Mon Sep 17 00:00:00 2001 From: jun Date: Mon, 28 Oct 2024 18:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=81=E7=89=87=E5=8E=9F=E6=9D=90=E6=96=99?= =?UTF-8?q?=E9=98=B2=E9=94=99-=E6=89=AB=E6=8F=8F=E6=9D=A1=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pcn/apiservice/serviceimpl/busi/MesCutRawErrorProofingService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesCutRawErrorProofingService.java b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesCutRawErrorProofingService.java index 2037832..b4d70f5 100644 --- a/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesCutRawErrorProofingService.java +++ b/modules/i3plus-ext-mes-pcn-apiservice/src/main/java/cn/estsh/i3plus/ext/mes/pcn/apiservice/serviceimpl/busi/MesCutRawErrorProofingService.java @@ -25,6 +25,7 @@ import org.springframework.util.StringUtils; import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; @@ -200,6 +201,7 @@ public class MesCutRawErrorProofingService implements IMesCutRawErrorProofingSer DdlPackBean packBean = DdlPackBean.getDdlPackBean(model.getOrganizeCode()); DdlPreparedPack.getStringEqualPack(model.getSn(), MesPcnExtConstWords.SN, packBean); MesMaterialSn materialSnDb = materialSnRepository.getByProperty(packBean); + if(Objects.isNull(materialSnDb)) MesPcnException.throwMesBusiException("条码【%s】不存在", model.getSn()); MesCutUpdateRawLengthModel result = new MesCutUpdateRawLengthModel(); BeanUtils.copyProperties(materialSnDb, result); return result;