From 404cd43c5b3fe41273509fdc0ac4b26d0e72f805 Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Tue, 18 Aug 2026 16:54:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(production):=20=E8=A7=A3=E5=86=B3=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=95=B0=E6=8D=AE=E6=A0=A1=E9=AA=8C=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了工具历史数据列表的空值检查 - 防止在工具历史数据为空时进行参数获取操作 - 修复了可能导致系统崩溃的安全隐患 --- .../modules/production/service/impl/DailyPlanServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java index 2ef1bd6..5cc186c 100644 --- a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java +++ b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java @@ -2306,8 +2306,8 @@ public class DailyPlanServiceImpl implements DailyPlanService { }); } //如果传了工序号 就校验下 - if(soToolData.getSeqNo()!=null){ - String fifoFlag = outboundLabelScanMapper.getSysParamenter(toolingHistDataList.get(0).getSite(), "205"); + if(soToolData.getSeqNo()!=null && null != toolingHistDataList && !toolingHistDataList.isEmpty()){ + String fifoFlag = outboundLabelScanMapper.getSysParamenter(soToolData.getSite(), "205"); if ("Y".equalsIgnoreCase(String.valueOf(fifoFlag).trim())){ // 参数205=Y时:校验工具实例当前领用派工单(ToolDetail.now_seq_no)必须等于本次报工派工单 - rqrq if(toolDetailData.getNowSeqNo()!=soToolData.getSeqNo()){