Commit 03e33f5d by pengjinyang

提交

parent 9634489c
......@@ -52,7 +52,7 @@ namespace Service.TakeStock
string[] skus = orders.Select(o => o.Sku).ToArray();
if (schedule.IsAutomation)
{
int count = _orderRepository.Count(o => o.WarehouseCode.Equals(schedule.WarehouseCode) && skus.Contains(o.Sku) && (o.State != TSOrderState.取消 || o.State != TSOrderState.完成) && o.CreationTime < DateTime.Now.AddDays(2));
int count = _orderRepository.Count(o => o.WarehouseCode.Equals(schedule.WarehouseCode) && skus.Contains(o.Sku) && (o.State != TSOrderState.取消 || o.State != TSOrderState.完成)); // && o.CreationTime < DateTime.Now.AddDays(2)
if (count > 0) return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment