From 0aacc686a6a8fef3c7539a6bdbb6303f5f38f25d Mon Sep 17 00:00:00 2001 From: lrx Date: Thu, 12 Feb 2026 13:53:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=88=86=E6=9E=90-=E4=B8=8B=E5=8F=91?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=81=AB=E8=AF=95=E9=87=91=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E6=9F=A5=E8=AF=A2=E4=B8=BA=E7=A9=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qms/business/bus/service/SampleAnalysisServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisServiceImpl.java b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisServiceImpl.java index c5ab2615..a694e172 100644 --- a/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisServiceImpl.java +++ b/zt-module-qms/zt-module-qms-server/src/main/java/com/zt/plat/module/qms/business/bus/service/SampleAnalysisServiceImpl.java @@ -1607,7 +1607,7 @@ public class SampleAnalysisServiceImpl implements SampleAnalysisService { String parameter = source.getParameter(); BusinessAssayProjectDataExtendRespVO currentBusinessAssayProjectData = businessAssayProjectDataList.stream().filter(f -> f.getBusinessAssayTaskDataId().equals(businessAssayTaskDataDO.getId()) && f.getSimpleName().equals(project)).findFirst().orElse(null); BusinessAssayParameterDataExtendRespVO currentBusinessAssayParameterData = businessAssayParameterDataList.stream().filter(f -> f.getBusinessAssayProjectDataId().equals(currentBusinessAssayProjectData.getId()) && f.getParameterKey().equals(parameter)).findFirst().orElse(null); - if (StringUtils.isBlank(currentBusinessAssayParameterData.getValue())) { + if (currentBusinessAssayParameterData!=null && StringUtils.isBlank(currentBusinessAssayParameterData.getValue())) { throw new ServiceException(1_032_050_000, "当前分析任务,存在下发配料必填为空情况。请检查后再下发!"); } }