Przeglądaj źródła

每月2号将创客表中ThisMonthTrade字段清零

lichunlei 3 lat temu
rodzic
commit
8eb0932fae
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      AppStart/Helper/StatService.cs

+ 4 - 0
AppStart/Helper/StatService.cs

@@ -1177,6 +1177,10 @@ namespace MySystem
             //     th.Start(check.ToString("yyyy-MM-dd"));
             //     check = check.AddDays(1);
             // }
+            if(DateTime.Now.Day == 2)
+            {
+                OtherMySqlConn.op("update Users set ThisMonthTrade=0 where ThisMonthTrade>0");
+            }
             Thread th = new Thread(StatTradeAmountEverDay);
             th.IsBackground = true;
             th.Start(date);