Commit 21b29ab4 by guanzhenshan

解决获取数据出错的问题

parent 6c7d6b33
...@@ -22,7 +22,7 @@ namespace Bailun.DC.DailyPurchaseSellStock ...@@ -22,7 +22,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
//{ //{
// var _services = new Services(); // var _services = new Services();
// var start = DateTime.Parse("2019-10-24"); // var start = DateTime.Parse("2019-10-25");
// while (start.AddDays(1) < DateTime.Now) // while (start.AddDays(1) < DateTime.Now)
// { // {
// _services.Init(start); // _services.Init(start);
......
...@@ -51,7 +51,7 @@ namespace Bailun.DC.DailyPurchaseSellStock ...@@ -51,7 +51,7 @@ namespace Bailun.DC.DailyPurchaseSellStock
left join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code left join dc_base_warehouse t2 on t1.warehouse_code=t2.warehouse_code
where t1.record_time='{day.AddDays(-1).ToString("yyyy-MM-dd")}' group by t1.bailun_sku,t1.warehouse_code"; where t1.record_time='{day.AddDays(-1).ToString("yyyy-MM-dd")}' group by t1.bailun_sku,t1.warehouse_code";
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString)) using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString+ "Allow User Variables=True;"))
{ {
if (cn.State == System.Data.ConnectionState.Closed) if (cn.State == System.Data.ConnectionState.Closed)
{ {
......
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