fix: 初始化工单材料库存结果列表

修复工单材料查询时未初始化结果列表导致潜在空引用异常的问题
This commit is contained in:
2026-03-04 09:56:01 +08:00
parent 3d98d742e5
commit 5ed1458431

View File

@@ -166,6 +166,7 @@ namespace DOAN.Service.MES.product
throw new ArgumentException("工单号不存在", nameof(workorder));
}
var result = new PagedInfo<MaterialInventoryDto>();
result.Result = new List<MaterialInventoryDto>();
// 单原材料
if (workorderInfo.RouteCode != "10")
{