检查通知本人默认已办

This commit is contained in:
何美荣 2026-01-27 17:49:41 +08:00
parent 86bfd029f8
commit d7ab4ddba0

View File

@ -11423,7 +11423,22 @@ namespace APT.BaseData.Services.DomainServices
{
t.ISCHECK = true;
t.CHECKTIME = DateTime.Now;
});
});
//存入一条已办
T_FM_NOTIFICATION_TASK notice = new T_FM_NOTIFICATION_TASK();
notice.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
notice.NOTICE_TITLE = entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + DateTime.Now.Year + DateTime.Now.Month.PadLeft(2, '0') + DateTime.Now.Day.PadLeft(2, '0') + entity.Nav_CheckType?.NAME + "-确认";
notice.SOURCE_DATA_ID = entity.ID;
notice.ORG_ID = entity.ORG_ID;
notice.ID = Guid.NewGuid();
notice.TASK_STARTDT = DateTime.Now;
notice.TASK_ENDDT = DateTime.Now.AddHours(24);
notice.NOTICE_TYPE = (int)FMNoticeTypeEnum.;
notice.NOTICE_STATUS = (int)FMNoticeStatusEnum.;
notice.USER_ID = (Guid)entity.APPLY_USER_ID;
notice.USER_NAME = entity.Nav_ApplyUser?.NAME;
notice.SOURCE_FORMCODE = "SK006_SHOWPRINT";
sendNotices.Add(notice);
}
userIds = userIds.Distinct().ToList();
if (userIds != null && userIds.Any())
@ -11438,8 +11453,8 @@ namespace APT.BaseData.Services.DomainServices
}
var date = DateTime.Now.Year + DateTime.Now.Month.PadLeft(2, '0') + DateTime.Now.Day.PadLeft(2, '0');
//发消息
sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + date + entity.Nav_CheckType?.NAME + "-确认", entity.ID, entity.ORG_ID, userIds, UserNames, DateTime.Now,
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum., "SK006_SHOWPRINT");
sendNotices.AddRange(NotificationTaskService.InsertUserNoticeTaskModels(entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + date + entity.Nav_CheckType?.NAME + "-确认", entity.ID, entity.ORG_ID, userIds, UserNames, DateTime.Now,
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum., "SK006_SHOWPRINT"));
}
else
{