From 5ed1458431beef77f193291624ea062f5eb1848d Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Wed, 4 Mar 2026 09:56:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=9D=90=E6=96=99=E5=BA=93=E5=AD=98=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复工单材料查询时未初始化结果列表导致潜在空引用异常的问题 --- DOAN.Service/MES/Product/ProWorkorderMaterialService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DOAN.Service/MES/Product/ProWorkorderMaterialService.cs b/DOAN.Service/MES/Product/ProWorkorderMaterialService.cs index 78f5b32..1050daa 100644 --- a/DOAN.Service/MES/Product/ProWorkorderMaterialService.cs +++ b/DOAN.Service/MES/Product/ProWorkorderMaterialService.cs @@ -166,6 +166,7 @@ namespace DOAN.Service.MES.product throw new ArgumentException("工单号不存在", nameof(workorder)); } var result = new PagedInfo(); + result.Result = new List(); // 单原材料 if (workorderInfo.RouteCode != "10") {