Commit 9445a28d by pengjinyang

提交

parent 8734a347
......@@ -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(1));
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(-1));
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