20211208 定时器优化,当日人数定时校正方法开放

This commit is contained in:
2021-12-08 10:22:41 +08:00
parent a0c757ae2f
commit fa779f17b2
4 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ namespace BLL
/// </summary>
public static void StartMonitor()
{
int adTimeJ = 120;
int adTimeJ = 30;
if (messageTimer != null)
{
messageTimer.Stop();
@@ -47,7 +47,7 @@ namespace BLL
{
try
{
var getDataList = (from x in Funs.DB.Sys_DataExchange where x.IsUpdate == false select x).Take(200).ToList();
var getDataList = (from x in Funs.DB.Sys_DataExchange where x.IsUpdate == false select x).Take(100).ToList();
if (getDataList.Count() > 0)
{
var getDataList0 = getDataList.Where(x => x.MessageText.Contains("\"Type\":0")).ToList();