refactor(MES/Product): 对工单物料列表按物料代码和批次号排序
添加了OrderBy操作,确保工单物料列表按物料代码和批次号排序,提高数据展示的一致性
This commit is contained in:
@@ -161,6 +161,7 @@ namespace DOAN.Service.MES.product
|
||||
Unit = it.Unit,
|
||||
BatchNo = it.BatchNo,
|
||||
})
|
||||
.OrderBy(it => it.MaterialCode)
|
||||
.ToList();
|
||||
result = InventoryList;
|
||||
}
|
||||
@@ -190,6 +191,8 @@ namespace DOAN.Service.MES.product
|
||||
Unit = it.Unit,
|
||||
BatchNo = it.BatchNo,
|
||||
})
|
||||
.OrderBy(it => it.MaterialCode)
|
||||
.OrderBy(it => it.BatchNo)
|
||||
.ToList();
|
||||
result.AddRange(InventoryList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user