|
@@ -1842,8 +1842,8 @@ namespace MySystem
|
|
|
// 每天统计头一天的交易额
|
|
|
public void StartEverDay()
|
|
|
{
|
|
|
- string TradeMonth = DateTime.Now.AddMonths(-5).ToString("yyyyMM");
|
|
|
- string PreMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
|
+ string TradeMonth = DateTime.Now.AddMonths(-6).ToString("yyyyMM");
|
|
|
+ // string PreMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
|
// if(DateTime.Now.Day == 1)
|
|
|
// {
|
|
|
// TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
@@ -1875,20 +1875,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 BrandId=14 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)));
|
|
|
- }
|
|
|
- }
|
|
|
+ // list = CustomerSqlConn.dtable("select UserId,sum(ActiveBuddyMerStatus)*10000 from UserTradeMonthSummary where TradeMonth>='" + TradeMonth + "' and BrandId=14 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)));
|
|
|
+ // }
|
|
|
+ // }
|
|
|
list = CustomerSqlConn.dtable("select UserId,sum(TotalAmount) from UserAmountSummary where TradeMonth>='" + TradeMonth + "' and SeoTitle='team' and UserId>0 group by UserId", MysqlConn.MpSqlConnStr);
|
|
|
foreach (DataRow dr in list.Rows)
|
|
|
{
|
|
@@ -1917,20 +1917,20 @@ namespace MySystem
|
|
|
dic.Add(UserId, decimal.Parse(function.CheckNum(ThisMonthTrade)));
|
|
|
}
|
|
|
}
|
|
|
- list = CustomerSqlConn.dtable("select UserId,SimValidActTeamCount*10000 from KxsStatServer.SimValidAct" + PreMonth + " where UserId>0", 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)));
|
|
|
- }
|
|
|
- }
|
|
|
+ // list = CustomerSqlConn.dtable("select UserId,SimValidActTeamCount*10000 from KxsStatServer.SimValidAct" + PreMonth + " where UserId>0", 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)));
|
|
|
+ // }
|
|
|
+ // }
|
|
|
list = CustomerSqlConn.dtable("select UserId,sum(TradeAmount) from HelpProfitUserTradeSummay where UserId>0 and TradeMonth>='" + TradeMonth + "' and SeoTitle='team' group by UserId", MysqlConn.ReadSqlConnStr);
|
|
|
foreach (DataRow dr in list.Rows)
|
|
|
{
|
|
@@ -2096,9 +2096,7 @@ namespace MySystem
|
|
|
StatMerchantTrade(date);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|