Commit 87b71559 by 泽锋 李

fix

parent 9026c908
......@@ -49,20 +49,20 @@ namespace AutoTurnOver.DB
_connection.Dispose();
}
private static MySqlConnection __connection;
public static MySqlConnection _connection
{
get
{
return new MySqlConnection(ConfigHelper.ConnectionString("Default"));
return new MySqlConnection(ConfigHelper.ConnectionString("Default"));
}
}
private static MySqlConnection __connection_read_only;
public static MySqlConnection _connection_read_only
{
get
{
return new MySqlConnection(ConfigHelper.ConnectionString("ReadOnly"));
}
}
......
......@@ -679,7 +679,7 @@ GROUP BY t1.bailun_sku,t3.hq_type
{
dc_base_mother_sku_dao.RemoveMap(new remove_map_input_dto
{
map_ids = conn.Query<int>(" select t1.id from dc_base_mother_sku_map as t1 where t1.bailun_sku_warehouse_code=@bailun_sku_warehouse_codes ", new { bailun_sku_warehouse_codes = datas.Select(s => s.bailun_sku_warehouse_code).ToList() }).ToList()
map_ids = conn.Query<int>(" select t1.id from dc_base_mother_sku_map as t1 where t1.bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ", new { bailun_sku_warehouse_codes = datas.Select(s => s.bailun_sku_warehouse_code).ToList() }).ToList()
}, new UserData { UserName = "system" });
}
return "";
......
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