lichunlei 3 лет назад
Родитель
Сommit
7ed5fa41d8
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      Startup.cs

+ 7 - 7
Startup.cs

@@ -133,11 +133,11 @@ namespace MySystem
                     pattern: "{controller=Home}/{action=Index}/{Id?}");
             });
 
-            // ResetUserTradeService.Instance.Start();
-            // ResetMerchantTradeService.Instance.Start();
-            // SycnProfitServiceV2.Instance.Start();
-            // ExcelHelper.Instance.Start();
-            // TestHelper.Instance.Start();
+            ResetUserTradeService.Instance.Start();
+            ResetMerchantTradeService.Instance.Start();
+            SycnProfitServiceV2.Instance.Start();
+            ExcelHelper.Instance.Start();
+            TestHelper.Instance.Start();
         }
 
 
@@ -152,11 +152,11 @@ namespace MySystem
         {
             Dictionary<string, Dictionary<string, string>> tables = new Dictionary<string, Dictionary<string, string>>();
             Library.OtherMySqlConn.connstr = Configuration["Setting:SqlConnStr"];
-            System.Data.DataTable tablecollection = Library.OtherMySqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'KxsMainServer2'");
+            System.Data.DataTable tablecollection = Library.OtherMySqlConn.dtable("select DISTINCT TABLE_NAME from information_schema.columns where table_schema = 'KxsMainServer'");
             foreach (System.Data.DataRow subtable in tablecollection.Rows)
             {
                 Dictionary<string, string> Columns = new Dictionary<string, string>();
-                System.Data.DataTable columncollection = Library.OtherMySqlConn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'KxsMainServer2' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'");
+                System.Data.DataTable columncollection = Library.OtherMySqlConn.dtable("select COLUMN_NAME,DATA_TYPE from information_schema.columns where table_schema = 'KxsMainServer' and TABLE_NAME='" + subtable["TABLE_NAME"].ToString() + "'");
                 foreach (System.Data.DataRow column in columncollection.Rows)
                 {
                     string datatype = column["DATA_TYPE"].ToString();