feat(材料管理): 添加原材料工单号字段并优化工单查询

在入库、出库记录及相关DTO中添加WorkorderRaw字段用于记录原材料工单号
修改ProWorkorderService查询逻辑,增加PlanNum>0的条件过滤
This commit is contained in:
2026-01-26 19:10:02 +08:00
parent 722ef40fd2
commit 69da20ba42
5 changed files with 51 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ namespace DOAN.Service.MES.product
var predicate = Expressionable
.Create<ProWorkorder>()
.And(it => it.PlanNum > 0)
.AndIF(
!string.IsNullOrEmpty(parm.productionName),
it => it.productionName.Contains(parm.productionName)
@@ -165,6 +166,7 @@ namespace DOAN.Service.MES.product
}
var predicate = Expressionable
.Create<ProWorkorder>()
.And(it => it.PlanNum > 0)
.AndIF(
!string.IsNullOrEmpty(parm.productionName),
it => it.productionName.Contains(parm.productionName)
@@ -198,6 +200,7 @@ namespace DOAN.Service.MES.product
var query = Queryable()
.Where(predicate.ToExpression())
.ToPage<ProWorkorder, ProWorkorderDto>(parm);
return query;