|
|
@@ -853,7 +853,7 @@ namespace wms.service.Service
|
|
|
return res;
|
|
|
}
|
|
|
var startTime = DateTime.Now.Date.AddDays(-1).AddMilliseconds(-1);
|
|
|
- invlist = invlist.ToList().OrderBy(p => p.Depth).ThenByDescending(p => p.ProductTime.Day);
|
|
|
+ invlist = invlist.Where(x=>x.ProductTime<=startTime).ToList().OrderBy(p => p.Depth).ThenByDescending(p => p.ProductTime.Day);
|
|
|
var tasklist = _taskrepository.AsQueryable().With(SqlWith.NoLock).Where(p => p.BusType == SxTaskBusType.TaskBusType_SX_TorCheckStockOut.GetDescription() && p.Type == TaskType.OutDepot).ToList();
|
|
|
var torTaskCount = _sysconfigrepository.GetFirst(p => p.Code == "TorTaskCount").SContent;
|
|
|
if (tasklist.Any() && tasklist.Count > int.Parse(torTaskCount))
|