同步地图数据时间间隔配置

This commit is contained in:
hehaibing-1996
2025-03-06 13:10:45 +08:00
parent cb16700a71
commit 5327f92aba
2 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,12 @@ namespace WCS.BLL.Config
public bool IsResetDBOrTable { get; set; }
public int InstoreTimeOut { get; set; } = 5000;
/// <summary>
/// 同步地图数据间隔时间
/// </summary>
public int SyncMapDatasIntervalTime { get; set; } = 60000;
#region
public bool IsMx { get; set; }
/// <summary>

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.BLL.Config;
using WCS.BLL.DbModels;
using WCS.BLL.Tool;
using WCS.DAL.Db;
@ -209,7 +210,7 @@ namespace WCS.BLL.Manager
}
Logs.Write("【定时任务】定时同步货架绑定情况,结束", LogsType.Tasks);
//每60秒同步一次
Thread.Sleep(20000);
Thread.Sleep(LocalFile.Config.SyncMapDatasIntervalTime);
}
});
#endregion