Browse Source

分润条件调整

lcl 2 tháng trước cách đây
mục cha
commit
1443a0833f

+ 3 - 3
Util/HaoDa/ProfitAfterHelper.cs

@@ -89,15 +89,15 @@ namespace MySystem
         public void DoProfit(string otherCondi = "", string TradeMonth = "")
         {
             if(string.IsNullOrEmpty(TradeMonth)) TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            if(string.IsNullOrEmpty(otherCondi))
-            {
+            // if(string.IsNullOrEmpty(otherCondi))
+            // {
                 string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-after.txt");
                 if (!string.IsNullOrEmpty(check))
                 {
                     return;
                 }
                 function.WritePage("/ProfitFlag/", TradeMonth + "-after.txt", DateTime.Now.ToString());
-            }
+            // }
             Models.KxsMain.WebCMSEntities kxsdb = new Models.KxsMain.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();

+ 4 - 4
Util/HaoDa/ProfitAfterNewHelper.cs

@@ -38,7 +38,7 @@ namespace MySystem
                 {
                     try
                     {
-                        DoProfit();
+                        DoProfit(" and Id>=6302859");
                     }
                     catch (Exception ex)
                     {
@@ -89,15 +89,15 @@ namespace MySystem
         public void DoProfit(string otherCondi = "", string TradeMonth = "")
         {
             if(string.IsNullOrEmpty(TradeMonth)) TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            if(string.IsNullOrEmpty(otherCondi))
-            {
+            // if(string.IsNullOrEmpty(otherCondi))
+            // {
                 string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-after-new.txt");
                 if (!string.IsNullOrEmpty(check))
                 {
                     return;
                 }
                 function.WritePage("/ProfitFlag/", TradeMonth + "-after-new.txt", DateTime.Now.ToString());
-            }
+            // }
             Models.KxsMain.WebCMSEntities kxsdb = new Models.KxsMain.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();

+ 4 - 4
Util/HaoDa/ProfitBeforeHelper.cs

@@ -38,7 +38,7 @@ namespace MySystem
                 {
                     try
                     {
-                        DoProfit();
+                        DoProfit(" and Id>=1674875");
                     }
                     catch (Exception ex)
                     {
@@ -89,15 +89,15 @@ namespace MySystem
         public void DoProfit(string otherCondi = "", string TradeMonth = "")
         {
             if(string.IsNullOrEmpty(TradeMonth)) TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            if(string.IsNullOrEmpty(otherCondi))
-            {
+            // if(string.IsNullOrEmpty(otherCondi))
+            // {
                 string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-before.txt");
                 if (!string.IsNullOrEmpty(check))
                 {
                     return;
                 }
                 function.WritePage("/ProfitFlag/", TradeMonth + "-before.txt", DateTime.Now.ToString());
-            }
+            // }
             Models.KxsMain.WebCMSEntities kxsdb = new Models.KxsMain.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();

+ 4 - 4
Util/HaoDa/ProfitBeforeNewHelper.cs

@@ -38,7 +38,7 @@ namespace MySystem
                 {
                     try
                     {
-                        DoProfit();
+                        DoProfit(" and Id>=628901");
                     }
                     catch (Exception ex)
                     {
@@ -89,15 +89,15 @@ namespace MySystem
         public void DoProfit(string otherCondi = "", string TradeMonth = "")
         {
             if(string.IsNullOrEmpty(TradeMonth)) TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
-            if(string.IsNullOrEmpty(otherCondi))
-            {
+            // if(string.IsNullOrEmpty(otherCondi))
+            // {
                 string check = function.ReadInstance("/ProfitFlag/" + TradeMonth + "-before-new.txt");
                 if (!string.IsNullOrEmpty(check))
                 {
                     return;
                 }
                 function.WritePage("/ProfitFlag/", TradeMonth + "-before-new.txt", DateTime.Now.ToString());
-            }
+            // }
             Models.KxsMain.WebCMSEntities kxsdb = new Models.KxsMain.WebCMSEntities();
             WebCMSEntities dbnew = new WebCMSEntities();
             KxsUserModels.WebCMSEntities udb = new KxsUserModels.WebCMSEntities();