This commit is contained in:
qianhao.xu 2024-11-15 14:11:53 +08:00
parent fcb6d237cb
commit d30d5e9638
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,11 @@ namespace DOAN.Model.MES.product.Dto
public string LineCode { get; set; }
public DateTime[] TimeRange { get; set; }
/// <summary>
/// 仓库确认数
/// </summary>
public int WarehouseconfirmationNum { get; set; }
}
/// <summary>

View File

@ -42,6 +42,7 @@ namespace DOAN.Service.MES.product
.AndIF(!string.IsNullOrEmpty(parm.FkWorkorder), (w, r) => w.Workorder.Contains(parm.FkWorkorder))
.AndIF(!string.IsNullOrEmpty(parm.GroupCode), (w, r) => w.GroupCode == parm.GroupCode)
.AndIF(!string.IsNullOrEmpty(parm.LineCode), (w, r) => w.LineCode == parm.LineCode)
.AndIF(parm.WarehouseconfirmationNum>0,(w,r)=>r.QualifiedNumber>0)
.AndIF(parm.TimeRange != null && parm.TimeRange.Length == 2 && parm.TimeRange[0] > DateTime.MinValue, (w, r) => w.WorkorderDate >= parm.TimeRange[0])
.AndIF(parm.TimeRange != null && parm.TimeRange.Length == 2 && parm.TimeRange[1] > DateTime.MinValue, (w, r) => w.WorkorderDate <= parm.TimeRange[1])
;