非盟讯公司返回条数优化
This commit is contained in:
@ -476,8 +476,9 @@ namespace WCS.BLL.Services.Service
|
||||
//直接查询
|
||||
var recordsQueryable = DbHelp.db.Queryable<OutOrder>()
|
||||
.Where(t => request.OrderExeStatus.Contains(t.OutOrderExeStatus))
|
||||
.Where(t => t.CreateTime > DateTime.Now.AddDays(-2))
|
||||
.WhereIF(request.IsMXPD != null, t => t.IsMXPD == request.IsMXPD)
|
||||
.WhereIF(LocalFile.Config.IsMx, t => t.CreateTime > DateTime.Now.AddDays(-3))
|
||||
//.WhereIF(LocalFile.Config.IsMx, t => t.CreateTime > DateTime.Now.AddDays(-3))
|
||||
.WhereIF(!string.IsNullOrEmpty(LocalFile.Config.GroupName), t => t.GroupName == LocalFile.Config.GroupName);
|
||||
|
||||
var totalCount = await recordsQueryable.CountAsync();
|
||||
@ -1273,7 +1274,7 @@ namespace WCS.BLL.Services.Service
|
||||
{
|
||||
DbHelp.db.Updateable<InventoryDetail>().SetColumns(it => it.IsLocked == false).Where(it => it.MatSN == listdetail.MatSN).ExecuteCommand();
|
||||
}
|
||||
|
||||
|
||||
//灭灯
|
||||
//获取需要出库的物料明细
|
||||
var outOrderMatDetails = DbHelp.db.Queryable<OutOrderMatDetail>()
|
||||
|
Reference in New Issue
Block a user