refactor(ProWorkorderQueryService): 移除PlanNum > 0的过滤条件
移除工作订单查询中对PlanNum > 0的强制过滤,以支持包含零计划数量的工作订单查询
This commit is contained in:
@@ -54,7 +54,6 @@ namespace DOAN.Service.MES.product
|
|||||||
parm.WorkorderDate != null && parm.WorkorderDate.Length > 0,
|
parm.WorkorderDate != null && parm.WorkorderDate.Length > 0,
|
||||||
it => it.WorkorderDate >= parm.WorkorderDate[0] && it.WorkorderDate <= parm.WorkorderDate[1]
|
it => it.WorkorderDate >= parm.WorkorderDate[0] && it.WorkorderDate <= parm.WorkorderDate[1]
|
||||||
)
|
)
|
||||||
.And(it => it.PlanNum > 0)
|
|
||||||
.ToExpression();
|
.ToExpression();
|
||||||
|
|
||||||
var response = Context
|
var response = Context
|
||||||
@@ -105,7 +104,6 @@ namespace DOAN.Service.MES.product
|
|||||||
parm.WorkorderDate != null && parm.WorkorderDate.Length > 0,
|
parm.WorkorderDate != null && parm.WorkorderDate.Length > 0,
|
||||||
it => it.WorkorderDate >= parm.WorkorderDate[0] && it.WorkorderDate <= parm.WorkorderDate[1]
|
it => it.WorkorderDate >= parm.WorkorderDate[0] && it.WorkorderDate <= parm.WorkorderDate[1]
|
||||||
)
|
)
|
||||||
.And(it => it.PlanNum > 0)
|
|
||||||
.ToExpression();
|
.ToExpression();
|
||||||
|
|
||||||
var response = Context
|
var response = Context
|
||||||
|
|||||||
Reference in New Issue
Block a user