Commit 8734a347 by pengjinyang

提交

parent 38fe67e4
...@@ -52,7 +52,7 @@ namespace Service.TakeStock ...@@ -52,7 +52,7 @@ namespace Service.TakeStock
string[] skus = orders.Select(o => o.Sku).ToArray(); string[] skus = orders.Select(o => o.Sku).ToArray();
if (schedule.IsAutomation) 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(1));
if (count > 0) return false; if (count > 0) return false;
} }
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
"ConnectionStrings": { "ConnectionStrings": {
"Localhost": "server=gz-cdb-hqmznu0w.sql.tencentcdb.com;port=63523;database=bailun_wms;uid=root;password=#7kfnymAM$Y9-Ntf;Convert Zero Datetime=True;Allow User Variables=true;", "Localhost": "server=gz-cdb-hqmznu0w.sql.tencentcdb.com;port=63523;database=bailun_wms;uid=root;password=#7kfnymAM$Y9-Ntf;Convert Zero Datetime=True;Allow User Variables=true;",
//"Redis": "127.0.0.1" //"Redis": "127.0.0.1"
//"Redis": "common-redis" "Redis": "common-redis",
"Redis": "129.204.97.78", //"Redis": "129.204.97.78",
"RabbitMqConnection": "host=111.230.164.154:5672;username=bailun;password=1234abcd;prefetchcount=2;publisherConfirms=true;timeout=10" "RabbitMqConnection": "host=111.230.164.154:5672;username=bailun;password=1234abcd;prefetchcount=2;publisherConfirms=true;timeout=10"
}, },
"App": { "App": {
......
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