feat(MES): 添加按生产代码筛选工单的功能

在ProWorkorderQueryService中增加对ProductionCode的筛选条件,当参数中的ProductionCode不为空时,可以按生产代码过滤工单
This commit is contained in:
2026-03-13 11:01:54 +08:00
parent 2cff83b568
commit 1813dbb06d

View File

@@ -269,6 +269,7 @@ namespace DOAN.Service.MES.product
{
var result = Context
.Queryable<ProWorkorder>()
.WhereIF(!string.IsNullOrEmpty(parm.ProductionCode),it=> it.productionCode == parm.ProductionCode)
.Where(it => (it.ProductNum - it.ShipmentNum) > 0)
.OrderByDescending(it => it.CreatedTime)
.Select(it => new ProWorkorderStockDto