触发 安全意识调查 试卷 没部门的不触发
This commit is contained in:
parent
fc569622a3
commit
d85e73c72d
@ -142,7 +142,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
|
||||
var filter = new BaseFilter(entity.ORG_ID);
|
||||
filter.Include = new string[] { "Nav_Person" };
|
||||
var allUsers = this.GetEntities<T_FM_USER>(t => !t.CODE.Contains("admin") && t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用 && allUsersIds.Contains(t.ID), filter);
|
||||
var allUsers = this.GetEntities<T_FM_USER>(t => !t.CODE.Contains("admin") && t.DEPARTMENT_ID.HasValue && !t.PROJECT_ID.HasValue && t.ENABLE_STATUS == (int)FMEnableStatusEnum.启用 && allUsersIds.Contains(t.ID), filter);
|
||||
|
||||
foreach (var user in allUsersIds)
|
||||
{
|
||||
|
||||
@ -511,7 +511,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
});
|
||||
|
||||
//sendNotices.Add(NotificationTaskService.InsertUserNoticeTaskModel("培训效果评估调查-" + record.Nav_Notify.NAME, effect.ID, filter.GetOrgId(), (Guid)effect.USER_ID, "", DateTime.Now, DateTime.Now.AddDays(2), 1, "SE022"));
|
||||
sendNotices.Add(NotificationTaskService.InsertUserNoticeTaskModel("培训效果评估调查-" + record.Nav_Notify.NAME, effect.ID, filter.GetOrgId(), (Guid)effect.USER_ID, login.NAME, DateTime.Now, DateTime.Now.AddDays(2), 1, "SE022"));
|
||||
sendNotices.Add(NotificationTaskService.InsertUserNoticeTaskModel("培训效果评估调查-" + record.Nav_Notify.NAME, effect.ID, filter.GetOrgId(), (Guid)effect.USER_ID, login.NAME, DateTime.Now, 1, "SE022", FMTASKTYPE.Default));
|
||||
}
|
||||
var userCount = record.Nav_Users.Count(t => t.STATUS == SETrainRecordUserStatusEnum.参与 && t.OK == false);
|
||||
if (userCount == 0 && !isReSend)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user