fix: 初始化工单材料库存结果列表
修复工单材料查询时未初始化结果列表导致潜在空引用异常的问题
This commit is contained in:
@@ -166,6 +166,7 @@ namespace DOAN.Service.MES.product
|
|||||||
throw new ArgumentException("工单号不存在", nameof(workorder));
|
throw new ArgumentException("工单号不存在", nameof(workorder));
|
||||||
}
|
}
|
||||||
var result = new PagedInfo<MaterialInventoryDto>();
|
var result = new PagedInfo<MaterialInventoryDto>();
|
||||||
|
result.Result = new List<MaterialInventoryDto>();
|
||||||
// 单原材料
|
// 单原材料
|
||||||
if (workorderInfo.RouteCode != "10")
|
if (workorderInfo.RouteCode != "10")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user