Sfoglia il codice sorgente

每日重置创客当月交易额需加上广电卡

lcl 1 anno fa
parent
commit
c05761d6b1
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14 0
      AppStart/Helper/StatService.cs

+ 14 - 0
AppStart/Helper/StatService.cs

@@ -1839,6 +1839,20 @@ namespace MySystem
                     dic.Add(UserId, decimal.Parse(function.CheckNum(ThisMonthTrade)));
                 }
             }
+            list = CustomerSqlConn.dtable("select UserId,sum(ActiveBuddyMerStatus)*10000 from UserTradeMonthSummary where TradeMonth='" + TradeMonth + "' and SeoTitle='team' and UserId>0 group by UserId", MysqlConn.ReadSqlConnStr);
+            foreach (DataRow dr in list.Rows)
+            {
+                string UserId = dr["UserId"].ToString();
+                string ThisMonthTrade = dr[1].ToString();
+                if(dic.ContainsKey(UserId))
+                {
+                    dic[UserId] += decimal.Parse(function.CheckNum(ThisMonthTrade));
+                }
+                else
+                {
+                    dic.Add(UserId, decimal.Parse(function.CheckNum(ThisMonthTrade)));
+                }
+            }
 
             int index = 0;
             string sql = "";