소스 검색

释放注释

DuGuYang 1 년 전
부모
커밋
ca6044fee4
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      AppStart/Helper/StatResetService2.cs

+ 10 - 10
AppStart/Helper/StatResetService2.cs

@@ -36,16 +36,16 @@ namespace MySystem
         }
         public void StartResetMerchantDo()
         {
-            // while (true)
-            // {
-            //     string content = RedisDbconn.Instance.RPop<string>("ResetMerchantStatDataQueue2");
-            //     if (!string.IsNullOrEmpty(content))
-            //     {
-            //         StatResetMerchantAmount(content);
-            //     }
-            //     Thread.Sleep(10000);
-            // }
-            StatResetMerchantAmount("{\"MerchantId\":\"" + 1153 + "\",\"StartDate\":\"" + 20231028 + "\",\"EndDate\":\"" + 20231028 + "\"}");
+            while (true)
+            {
+                string content = RedisDbconn.Instance.RPop<string>("ResetMerchantStatDataQueue2");
+                if (!string.IsNullOrEmpty(content))
+                {
+                    StatResetMerchantAmount(content);
+                }
+                Thread.Sleep(10000);
+            }
+            // StatResetMerchantAmount("{\"MerchantId\":\"" + 1153 + "\",\"StartDate\":\"" + 20231001 + "\",\"EndDate\":\"" + 20231029 + "\"}");
         }
         public void StatResetMerchantAmount(string content)
         {