Selaa lähdekoodia

稳定期B统计时,需要包含个人交易

lcl 1 vuosi sitten
vanhempi
commit
64b35d0559
2 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 1 1
      AppStart/Helper/Stat2Service.cs
  2. 1 2
      AppStart/Helper/StatService.cs

+ 1 - 1
AppStart/Helper/Stat2Service.cs

@@ -127,6 +127,7 @@ namespace MySystem
             decimal TradeAmount = decimal.Parse(selfDr[11].ToString());
             int TradeCount = int.Parse(selfDr[12].ToString());
             string TradeMonth = TradeDate.Substring(0, 6);
+            ParentNav += "," + UserId + ",";
 
             if (Version < 2)
             {
@@ -191,7 +192,6 @@ namespace MySystem
                         selfStat.NotHelpDirectTradeAmt += TradeAmount;
                     }
                 }
-                ParentNav += "," + UserId + ",";
                 if (!string.IsNullOrEmpty(ParentNav))
                 {
                     string[] ParentNavList = ParentNav.Trim(',').Replace(",,", ",").Split(',');

+ 1 - 2
AppStart/Helper/StatService.cs

@@ -190,6 +190,7 @@ namespace MySystem
             decimal TradeAmount = decimal.Parse(selfDr[11].ToString());
             int TradeCount = int.Parse(selfDr[12].ToString());
             string TradeMonth = TradeDate.Substring(0, 6);
+            ParentNav += "," + UserId + ",";
 
             if(Version < 2)
             {
@@ -254,7 +255,6 @@ namespace MySystem
                         selfStat.NotHelpDirectTradeAmt += TradeAmount;
                     }
                 }
-                ParentNav += "," + UserId + ",";
                 if (!string.IsNullOrEmpty(ParentNav))
                 {
                     string[] ParentNavList = ParentNav.Trim(',').Replace(",,", ",").Split(',');
@@ -363,7 +363,6 @@ namespace MySystem
                         selfStat2.ProfitTradeAmt += TradeAmount;
                     }
                 }
-                ParentNav += "," + UserId + ",";
                 if (!string.IsNullOrEmpty(ParentNav))
                 {
                     string[] ParentNavList = ParentNav.Trim(',').Replace(",,", ",").Split(',');