Parcourir la source

分润分新政

lcl il y a 1 mois
Parent
commit
2b00442e12

+ 3 - 3
AppStart/Helper/Profit/ProfitAfterNewHelper.cs

@@ -53,16 +53,16 @@ namespace MySystem
         public void DoProfit()
         {
             string TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-after.txt");
+            string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-after-new.txt");
             if(!string.IsNullOrEmpty(check))
             {
                 return;
             }
-            function.WritePage("/ProfitFlag/", TradeMonth + "-after.txt", DateTime.Now.ToString());
+            function.WritePage("/ProfitFlag/", TradeMonth + "-after-new.txt", DateTime.Now.ToString());
             KxsMainModels.WebCMSEntities kxsdb = new KxsMainModels.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();
-            DataTable dt = CustomerSqlConn.dtable("select IsAct,UserId,sum(TotalAmount) from UserAmountSummaryAfter where TradeMonth='" + TradeMonth + "' and SeoTitle='self' group by IsAct,UserId", MysqlConn.SqlConnStr);
+            DataTable dt = CustomerSqlConn.dtable("select IsAct,UserId,sum(TotalAmount) from UserAmountSummaryNewAfter where TradeMonth='" + TradeMonth + "' and SeoTitle='self' group by IsAct,UserId", MysqlConn.SqlConnStr);
             foreach(DataRow dr in dt.Rows)
             {
                 int UserId = int.Parse(dr["UserId"].ToString());

+ 3 - 3
AppStart/Helper/Profit/ProfitBeforeNewHelper.cs

@@ -52,16 +52,16 @@ namespace MySystem
         public void DoProfit()
         {
             string TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-before.txt");
+            string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-before-new.txt");
             if(!string.IsNullOrEmpty(check))
             {
                 return;
             }
-            function.WritePage("/ProfitFlag/", TradeMonth + "-before.txt", DateTime.Now.ToString());
+            function.WritePage("/ProfitFlag/", TradeMonth + "-before-new.txt", DateTime.Now.ToString());
             KxsMainModels.WebCMSEntities kxsdb = new KxsMainModels.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();
-            DataTable dt = CustomerSqlConn.dtable("select IsAct,UserId,sum(TotalAmount) from UserAmountSummaryBefore where TradeMonth='" + TradeMonth + "' and SeoTitle='self' group by IsAct,UserId", MysqlConn.SqlConnStr);
+            DataTable dt = CustomerSqlConn.dtable("select IsAct,UserId,sum(TotalAmount) from UserAmountSummaryNewBefore where TradeMonth='" + TradeMonth + "' and SeoTitle='self' group by IsAct,UserId", MysqlConn.SqlConnStr);
             foreach(DataRow dr in dt.Rows)
             {
                 int UserId = int.Parse(dr["UserId"].ToString());

+ 2 - 0
Startup.cs

@@ -210,6 +210,8 @@ namespace MySystem
                 // ProfitHelper.Instance.StartListenProfit(); //每月分润
                 ProfitBeforeHelper.Instance.StartListenProfit(); //每月分润
                 ProfitAfterHelper.Instance.StartListenProfit(); //每月分润
+                ProfitBeforeNewHelper.Instance.StartListenProfit(); //每月分润
+                ProfitAfterNewHelper.Instance.StartListenProfit(); //每月分润
 
                 AlipayPayBackFeeService.Instance.Start();
                 ActiveRewardService.Instance.StartAct();