lcl 11 сар өмнө
parent
commit
77c226fb1a

+ 2 - 2
AppStart/Helper/StatService2.cs

@@ -35,7 +35,7 @@ namespace MySystem
                 {
                     StatTradeAmount();
                 }
-                Thread.Sleep(10000);
+                Thread.Sleep(2000);
             }
         }
         public void StatTradeAmount()
@@ -49,7 +49,7 @@ namespace MySystem
                 {
                     string start = DateTime.Now.AddDays(-100).ToString("yyyy-MM-dd HH:mm:ss");
                     function.WriteLog("开始时间:" + start, "统计商户和创客交易额日志");
-                    DataTable idsDt = CustomerSqlConn.dtable("select Id from ConsumerOrders where CreateDate>='" + start + "' and Status>0 and Version=0 order by Id limit 20", AppConfig.Base.SqlConn2);
+                    DataTable idsDt = CustomerSqlConn.dtable("select Id from ConsumerOrders where Id>=892282 and CreateDate>='" + start + "' and Status>0 and Version=0 order by Id limit 30", AppConfig.Base.SqlConn2);
                     function.WriteLog("查询条数:" + idsDt.Rows.Count, "统计商户和创客交易额日志");
                     if(idsDt.Rows.Count > 0)
                     {