|
@@ -182,7 +182,7 @@ namespace MySystem
|
|
|
Thread.Sleep(60000);
|
|
Thread.Sleep(60000);
|
|
|
|
|
|
|
|
// List<LeaderCompTradeStat> stats = db.LeaderCompTradeStat.Where(m => m.StatMonth == MonthString).ToList();
|
|
// List<LeaderCompTradeStat> stats = db.LeaderCompTradeStat.Where(m => m.StatMonth == MonthString).ToList();
|
|
|
- DataTable stats = CustomerSqlConn.dtable("select UserId,ParentUserId,ParentNav,TradeAmount,LeaderType,(select sum(TradeAmount) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigTradeAmount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount<30000000) SmallCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and LeaderType=2) LeaderCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and LeaderType>2) OperaterCount from LeaderCompTradeStat p where StatMonth='" + MonthString + "'", MysqlConn.ReadSqlConnStr);
|
|
|
|
|
|
|
+ DataTable stats = CustomerSqlConn.dtable("select UserId,ParentUserId,ParentNav,TradeAmount,LeaderType,(select sum(TradeAmount) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigTradeAmount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount<30000000) SmallCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and LeaderType>0) LeaderCount,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and LeaderType>0) OperaterCount from LeaderCompTradeStat p where StatMonth='" + MonthString + "'", MysqlConn.ReadSqlConnStr);
|
|
|
Utils.WriteLog(stats.Rows.Count.ToString(), "领导人达标奖励日志");
|
|
Utils.WriteLog(stats.Rows.Count.ToString(), "领导人达标奖励日志");
|
|
|
string sqlString = "";
|
|
string sqlString = "";
|
|
|
foreach(DataRow stat in stats.Rows)
|
|
foreach(DataRow stat in stats.Rows)
|