2134
This commit is contained in:
parent
a2249025fd
commit
0e902ab30e
@ -1952,6 +1952,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
List<T_SE_TRAIN_NOTIFY_CONTENT_REL> transferNotifyContents = new List<T_SE_TRAIN_NOTIFY_CONTENT_REL>();
|
List<T_SE_TRAIN_NOTIFY_CONTENT_REL> transferNotifyContents = new List<T_SE_TRAIN_NOTIFY_CONTENT_REL>();
|
||||||
List<T_SE_TRAIN_NOTIFY_FILE> transferNotifyFiles = new List<T_SE_TRAIN_NOTIFY_FILE>();
|
List<T_SE_TRAIN_NOTIFY_FILE> transferNotifyFiles = new List<T_SE_TRAIN_NOTIFY_FILE>();
|
||||||
List<T_FM_NOTIFICATION_TASK> sendNoticeTask = new List<T_FM_NOTIFICATION_TASK>();
|
List<T_FM_NOTIFICATION_TASK> sendNoticeTask = new List<T_FM_NOTIFICATION_TASK>();
|
||||||
|
IEnumerable<T_FM_NOTIFICATION_TASK> EndTaskSign = null;
|
||||||
List<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> ListCour = null;
|
List<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> ListCour = null;
|
||||||
if (data.STATUS == SETrainRecordStatus.审阅中)
|
if (data.STATUS == SETrainRecordStatus.审阅中)
|
||||||
{
|
{
|
||||||
@ -2087,17 +2088,16 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
sendNoticeTask.AddRange(NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1).Date, (int)FMNoticeTypeEnum.今日提醒, "PF135"));
|
sendNoticeTask.AddRange(NotificationTaskService.InsertUserNoticeTaskModels(allSendUserTitles, allSendDataIds, filter.GetOrgId(), allSendUserIds, allSendUserNames, DateTime.Now, DateTime.Now.AddDays(1).Date, (int)FMNoticeTypeEnum.今日提醒, "PF135"));
|
||||||
}
|
}
|
||||||
//归档 把签到待办处理掉
|
//归档 把签到待办处理掉
|
||||||
var taskEndMore = GetEntities<T_FM_NOTIFICATION_TASK>(e => e.SOURCE_DATA_ID == finishNotice.SOURCE_DATA_ID && e.NOTICE_STATUS == 0 && e.SOURCE_FORMCODE == "SE017_SHOWPRINT", null);
|
EndTaskSign = GetEntities<T_FM_NOTIFICATION_TASK>(e => e.SOURCE_DATA_ID == finishNotice.SOURCE_DATA_ID && e.NOTICE_STATUS == 0 && e.SOURCE_FORMCODE == "SE017_SHOWPRINT" && e.NOTICE_TITLE.Contains("签到"), null);
|
||||||
if (taskEndMore != null && taskEndMore.Count() > 0)
|
if (EndTaskSign != null && EndTaskSign.Count() > 0)
|
||||||
{
|
{
|
||||||
foreach (var item in taskEndMore)
|
foreach (var item in EndTaskSign)
|
||||||
{
|
{
|
||||||
item.NOTICE_STATUS = 4;
|
item.NOTICE_STATUS = 4;
|
||||||
item.TASK_DT = DateTime.Now;
|
item.TASK_DT = DateTime.Now;
|
||||||
item.MODIFIER_ID = finishNotice.MODIFIER_ID;
|
item.MODIFIER_ID = finishNotice.MODIFIER_ID;
|
||||||
item.MODIFY_TIME = DateTime.Now;
|
item.MODIFY_TIME = DateTime.Now;
|
||||||
}
|
}
|
||||||
sendNoticeTask.AddRange(taskEndMore);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2119,6 +2119,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
BantchAddEntityNoCommit(sendNoticeTask);
|
BantchAddEntityNoCommit(sendNoticeTask);
|
||||||
if (ListCour != null && ListCour.Any())
|
if (ListCour != null && ListCour.Any())
|
||||||
BantchSaveEntityNoCommit(ListCour);
|
BantchSaveEntityNoCommit(ListCour);
|
||||||
|
if (EndTaskSign != null && EndTaskSign.Any())
|
||||||
|
BantchSaveEntityNoCommit(EndTaskSign);
|
||||||
|
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user