Commit 20b71dbb by 泽锋 李

利润最大化,监控状态筛选异常

parent 31ce071c
...@@ -25,7 +25,9 @@ namespace AutoGeneratePurchaseAdvise ...@@ -25,7 +25,9 @@ namespace AutoGeneratePurchaseAdvise
//PurchaseAdviseServices.Generate($"早上的全量周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")), is_clear_data: false); //PurchaseAdviseServices.Generate($"早上的全量周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")), is_clear_data: false);
//PurchaseAdviseServices.Generate($"下午的补充周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 12:00:00"))); //PurchaseAdviseServices.Generate($"下午的补充周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 12:00:00")));
//PurchaseAdviseServices.AutoPushBuySys(4);
} }
catch (Exception ex) catch (Exception ex)
{ {
......
...@@ -2281,8 +2281,8 @@ left join dc_auto_turnover as dat on dat.warehouse_code = ta.warehouse_code and ...@@ -2281,8 +2281,8 @@ left join dc_auto_turnover as dat on dat.warehouse_code = ta.warehouse_code and
} }
if (m.monitor_status != null) if (m.monitor_status != null)
{ {
sqlCount += " left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code "; sqlCount += " left join dc_auto_config_sku_warehouse as t7 on dat.bailun_sku = t7.bailun_sku and dat.warehouse_code = t7.warehouse_code ";
sql += " left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code "; sql += " left join dc_auto_config_sku_warehouse as t7 on dat.bailun_sku = t7.bailun_sku and dat.warehouse_code = t7.warehouse_code ";
} }
if (m.returngoodspush_state != null) if (m.returngoodspush_state != null)
{ {
...@@ -2343,13 +2343,13 @@ left join dc_auto_turnover as dat on dat.warehouse_code = ta.warehouse_code and ...@@ -2343,13 +2343,13 @@ left join dc_auto_turnover as dat on dat.warehouse_code = ta.warehouse_code and
} }
if (m.monitor_status == 1) if (m.monitor_status == 1)
{ {
sql += " and t5.`status`=1 "; sql += " and t7.`status`=1 ";
sqlCount += " and t5.`status`=1 "; sqlCount += " and t7.`status`=1 ";
} }
if (m.monitor_status == 0) if (m.monitor_status == 0)
{ {
sql += " and ( t5.`status`=0 or t5.`status` is null ) "; sql += " and ( t7.`status`=0 or t7.`status` is null ) ";
sqlCount += " and ( t5.`status`=0 or t5.`status` is null ) "; sqlCount += " and ( t7.`status`=0 or t7.`status` is null ) ";
} }
if (m.returngoodspush_state == 1) if (m.returngoodspush_state == 1)
......
...@@ -22,7 +22,7 @@ namespace AutoTurnOver.Purchase.AverageTarget ...@@ -22,7 +22,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
try try
{ {
Console.WriteLine($"开始 init ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"开始 init ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAverageTargetServices.CalculationTransfer(days:(360*3),has_transfer:true); //PurchaseAverageTargetServices.CalculationTransfer(days:(360*3),has_transfer:true);
Console.WriteLine($"结束 init,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); Console.WriteLine($"结束 init,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
} }
catch (Exception ex) catch (Exception ex)
......
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