This commit is contained in:
毕文静 2025-10-11 09:37:04 +08:00
parent aea0bf3079
commit 278b09799d
1 changed files with 13 additions and 9 deletions

View File

@ -66,9 +66,9 @@
aTimer.Interval = 1000 * 60 * 30; aTimer.Interval = 1000 * 60 * 30;
aTimer.Enabled = true; aTimer.Enabled = true;
aTimer.Start(); aTimer.Start();
} }
// 过期提示 // 过期提示
//var foList = from x in Funs.DB.FC_SESRelatedData //var foList = from x in Funs.DB.FC_SESRelatedData
// where x.Expire_Date != null // where x.Expire_Date != null
@ -91,7 +91,7 @@
{ {
System.Timers.Timer aTimer = new System.Timers.Timer(); System.Timers.Timer aTimer = new System.Timers.Timer();
aTimer.Elapsed += new System.Timers.ElapsedEventHandler(aTimer_FC_AutoSend); aTimer.Elapsed += new System.Timers.ElapsedEventHandler(aTimer_FC_AutoSend);
//4小时执行一次 //1小时执行一次
aTimer.Interval = 1000 * 60 * 60; aTimer.Interval = 1000 * 60 * 60;
aTimer.Enabled = true; aTimer.Enabled = true;
aTimer.Start(); aTimer.Start();
@ -102,7 +102,7 @@
{ {
System.Timers.Timer fcTimer = new System.Timers.Timer(); System.Timers.Timer fcTimer = new System.Timers.Timer();
fcTimer.Elapsed += new System.Timers.ElapsedEventHandler(FC_AutoStatus); fcTimer.Elapsed += new System.Timers.ElapsedEventHandler(FC_AutoStatus);
//120分钟执行一次 //60分钟执行一次
fcTimer.Interval = 1000 * 60 * 60; fcTimer.Interval = 1000 * 60 * 60;
fcTimer.Enabled = true; fcTimer.Enabled = true;
fcTimer.Start(); fcTimer.Start();
@ -1770,6 +1770,9 @@
if (punishments.Count() > 0) if (punishments.Count() > 0)
{ {
foreach (var pun in punishments) foreach (var pun in punishments)
{
var audit = BLL.PunishmentAuditService.GetAuditByAuditMan(pun.PunishmentId, pun.UserDep);
if (audit == null)
{ {
//新增用户部门操作流程 //新增用户部门操作流程
Model.EMC_PunishmentAudit newAudit = new EMC_PunishmentAudit(); Model.EMC_PunishmentAudit newAudit = new EMC_PunishmentAudit();
@ -1777,6 +1780,7 @@
newAudit.PunishmentId = pun.PunishmentId; newAudit.PunishmentId = pun.PunishmentId;
newAudit.AuditMan = pun.UserDep; newAudit.AuditMan = pun.UserDep;
BLL.PunishmentAuditService.AddPunishmentAudit(newAudit); BLL.PunishmentAuditService.AddPunishmentAudit(newAudit);
}
List<Model.Sys_User> userList = new List<Sys_User>(); List<Model.Sys_User> userList = new List<Sys_User>();
EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId);