|
@@ -53,7 +53,13 @@ namespace MySystem
|
|
|
|
|
|
public void ListenTest()//启动
|
|
|
{
|
|
|
- string check = function.ReadInstance("/LeaderComp/Repeat/202503.txt");
|
|
|
+ string check = function.ReadInstance("/LeaderComp/Repeat/202502.txt");
|
|
|
+ if (string.IsNullOrEmpty(check))
|
|
|
+ {
|
|
|
+ function.WritePage("/LeaderComp/Repeat/", "202502.txt", DateTime.Now.ToString());
|
|
|
+ Ready("202502");
|
|
|
+ }
|
|
|
+ check = function.ReadInstance("/LeaderComp/Repeat/202503.txt");
|
|
|
if (string.IsNullOrEmpty(check))
|
|
|
{
|
|
|
function.WritePage("/LeaderComp/Repeat/", "202503.txt", DateTime.Now.ToString());
|
|
@@ -258,7 +264,8 @@ namespace MySystem
|
|
|
string sql = "";
|
|
|
string MonthFlag = month;
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
- DataTable dt = CustomerSqlConn.dtable("select * from (select UserId,ParentUserId,ParentNav,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigCount from LeaderCompTradeStat p where StatMonth='" + month + "' and LeaderType>=2) tb where BigCount>0", MysqlConn.SqlConnStr);
|
|
|
+ // DataTable dt = CustomerSqlConn.dtable("select * from (select UserId,ParentUserId,ParentNav,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigCount from LeaderCompTradeStat p where StatMonth='" + month + "' and LeaderType>=2) tb where BigCount>0", MysqlConn.SqlConnStr);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("select * from (select UserId,ParentUserId,ParentNav,(select count(1) from LeaderCompTradeStat where ParentUserId=p.UserId and TradeAmount>=30000000) BigCount from LeaderCompTradeStat p where StatMonth='" + month + "') tb where BigCount>0", MysqlConn.SqlConnStr);
|
|
|
foreach(DataRow dr in dt.Rows)
|
|
|
{
|
|
|
int UserId = int.Parse(function.CheckInt(dr["UserId"].ToString()));
|