修改定时任务
This commit is contained in:
parent
ec680493c9
commit
3838a87918
|
@ -18,7 +18,7 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void StartMonitor()
|
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();
|
//var getSynchroSet = Funs.DB.RealName_SynchroSet.FirstOrDefault();
|
||||||
//if (getSynchroSet != null && getSynchroSet.Intervaltime.HasValue)
|
//if (getSynchroSet != null && getSynchroSet.Intervaltime.HasValue)
|
||||||
//{
|
//{
|
||||||
|
@ -86,6 +86,8 @@ namespace BLL
|
||||||
SynchroSetService.InsertRealNamePushLog(null, item.ProCode, "实名制定时器", "sucess", "200", item.ProName, "成功", null);
|
SynchroSetService.InsertRealNamePushLog(null, item.ProCode, "实名制定时器", "sucess", "200", item.ProName, "成功", null);
|
||||||
SynchroSetService.PushProCollCompany(item.ProCode);
|
SynchroSetService.PushProCollCompany(item.ProCode);
|
||||||
SynchroSetService.PushAttendance(item.ProCode);
|
SynchroSetService.PushAttendance(item.ProCode);
|
||||||
|
|
||||||
|
UpdateSitePerson(null, null);
|
||||||
//SynchroSetService.updatePersonsExitTime(item.ProCode);
|
//SynchroSetService.updatePersonsExitTime(item.ProCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1533,9 +1533,9 @@ namespace BLL
|
||||||
{
|
{
|
||||||
getPerson.RealNameUpdateTime = DateTime.Now;
|
getPerson.RealNameUpdateTime = DateTime.Now;
|
||||||
}
|
}
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1565,7 +1565,7 @@ namespace BLL
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1768,7 +1768,7 @@ namespace BLL
|
||||||
// var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList();
|
// var getPersonS = getData.Select(x => x.idcardNumber).Distinct().ToList();
|
||||||
// foreach (var pitem in getPersonS)
|
// foreach (var pitem in getPersonS)
|
||||||
// {
|
// {
|
||||||
// PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false);
|
// PushPersonsByIdentityCard(Const.BtnAdd, proCode, pitem, false);
|
||||||
// PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false);
|
// PushPersonsByIdentityCard(Const.BtnModify, proCode, pitem, false);
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
|
@ -69,17 +69,17 @@
|
||||||
{
|
{
|
||||||
ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex);
|
ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex);
|
||||||
}
|
}
|
||||||
////根据考勤记录修改人员状态定时器
|
//////根据考勤记录修改人员状态定时器 此任务放入推送实名制定时任务中,同时操作人员表,导致死锁
|
||||||
try
|
//try
|
||||||
{
|
//{
|
||||||
BLL.RealNameMonitorService.StartUpdateSitePerson();
|
// //BLL.RealNameMonitorService.StartUpdateSitePerson();
|
||||||
// BLL.RealNameMonitorService.StartMonitorProject();
|
// // BLL.RealNameMonitorService.StartMonitorProject();
|
||||||
SynchroSetService.InsertRealNamePushLog(null, null, "根据考勤记录修改人员状态定时器开始启动", "sucess", "200", null, "成功", null);
|
// //SynchroSetService.InsertRealNamePushLog(null, null, "根据考勤记录修改人员状态定时器开始启动", "sucess", "200", null, "成功", null);
|
||||||
}
|
//}
|
||||||
catch (Exception ex)
|
//catch (Exception ex)
|
||||||
{
|
//{
|
||||||
ErrLogInfo.WriteLog("根据考勤记录修改人员状态定时器启动失败!", ex);
|
// ErrLogInfo.WriteLog("根据考勤记录修改人员状态定时器启动失败!", ex);
|
||||||
}
|
//}
|
||||||
///实名制出入记录去重
|
///实名制出入记录去重
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue