浏览代码

重跑2月3月

lcl 6 天之前
父节点
当前提交
96cd9fe689
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      AppStart/Helper/LeaderCompPrize2Helper.cs

+ 9 - 2
AppStart/Helper/LeaderCompPrize2Helper.cs

@@ -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()));