From 3838a8791865f61f10068ea0316abb2853585f6a Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Sat, 12 Apr 2025 11:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ZHGL/RealName/RealNameMonitorService.cs | 4 +++- SGGL/BLL/ZHGL/RealName/SynchroSetService.cs | 8 +++---- SGGL/FineUIPro.Web/Global.asax.cs | 22 +++++++++---------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/SGGL/BLL/ZHGL/RealName/RealNameMonitorService.cs b/SGGL/BLL/ZHGL/RealName/RealNameMonitorService.cs index f3f5f321..e0ab03e7 100644 --- a/SGGL/BLL/ZHGL/RealName/RealNameMonitorService.cs +++ b/SGGL/BLL/ZHGL/RealName/RealNameMonitorService.cs @@ -18,7 +18,7 @@ namespace BLL /// public static void StartMonitor() { - int adTimeJ = Funs.GetNewInt(ConfigurationManager.AppSettings["Intervaltime"]) ?? 30; + int adTimeJ = Funs.GetNewInt(ConfigurationManager.AppSettings["Intervaltime"]) ?? 60; //var getSynchroSet = Funs.DB.RealName_SynchroSet.FirstOrDefault(); //if (getSynchroSet != null && getSynchroSet.Intervaltime.HasValue) //{ @@ -86,6 +86,8 @@ namespace BLL SynchroSetService.InsertRealNamePushLog(null, item.ProCode, "实名制定时器", "sucess", "200", item.ProName, "成功", null); SynchroSetService.PushProCollCompany(item.ProCode); SynchroSetService.PushAttendance(item.ProCode); + + UpdateSitePerson(null, null); //SynchroSetService.updatePersonsExitTime(item.ProCode); } } diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index 3dce98eb..6b75c0a4 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -1533,9 +1533,9 @@ namespace BLL { getPerson.RealNameUpdateTime = DateTime.Now; } - db.SubmitChanges(); + db.SubmitChanges(); } - } + } } } else @@ -1565,7 +1565,7 @@ namespace BLL db.SubmitChanges(); } } - } + } } } } @@ -1768,7 +1768,7 @@ namespace BLL // var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList(); // foreach (var pitem in getPersonS) // { - // PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false); + // PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false); // PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false); // } //} diff --git a/SGGL/FineUIPro.Web/Global.asax.cs b/SGGL/FineUIPro.Web/Global.asax.cs index 830bd89b..2e55c63b 100644 --- a/SGGL/FineUIPro.Web/Global.asax.cs +++ b/SGGL/FineUIPro.Web/Global.asax.cs @@ -69,17 +69,17 @@ { ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex); } - ////根据考勤记录修改人员状态定时器 - try - { - BLL.RealNameMonitorService.StartUpdateSitePerson(); - // BLL.RealNameMonitorService.StartMonitorProject(); - SynchroSetService.InsertRealNamePushLog(null, null, "根据考勤记录修改人员状态定时器开始启动", "sucess", "200", null, "成功", null); - } - catch (Exception ex) - { - ErrLogInfo.WriteLog("根据考勤记录修改人员状态定时器启动失败!", ex); - } + //////根据考勤记录修改人员状态定时器 此任务放入推送实名制定时任务中,同时操作人员表,导致死锁 + //try + //{ + // //BLL.RealNameMonitorService.StartUpdateSitePerson(); + // // BLL.RealNameMonitorService.StartMonitorProject(); + // //SynchroSetService.InsertRealNamePushLog(null, null, "根据考勤记录修改人员状态定时器开始启动", "sucess", "200", null, "成功", null); + //} + //catch (Exception ex) + //{ + // ErrLogInfo.WriteLog("根据考勤记录修改人员状态定时器启动失败!", ex); + //} ///实名制出入记录去重 try {