feat(MES): 添加按生产代码筛选工单的功能
在ProWorkorderQueryService中增加对ProductionCode的筛选条件,当参数中的ProductionCode不为空时,可以按生产代码过滤工单
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user