Compare commits
No commits in common. "bdd9eadeda99ebe8f11809ecd9ebfc91d28785a0" and "41589508f78ac9688bc5dfd8a72b7cf6157efe10" have entirely different histories.
bdd9eadeda
...
41589508f7
@ -200,17 +200,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
if (entity.TaskID != Guid.Empty)
|
if (entity.TaskID != Guid.Empty)
|
||||||
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "SE017_SHOWPRINT");
|
finishNotice = NotificationTaskService.GetTaskFinishModel(entity.TaskID, "SE017_SHOWPRINT");
|
||||||
|
|
||||||
var listTaskCancle = GetEntities<T_FM_NOTIFICATION_TASK>(e => e.SOURCE_DATA_ID.HasValue && e.SOURCE_DATA_ID.Value == entity.ID && e.NOTICE_STATUS == 0 && e.NOTICE_TITLE.StartsWith("培训记录签到-%"), null, null);
|
|
||||||
if (listTaskCancle != null && listTaskCancle.Count() > 0)
|
|
||||||
{
|
|
||||||
foreach (var item in listTaskCancle)
|
|
||||||
{
|
|
||||||
item.ISCANCEL = true;
|
|
||||||
item.TASK_DT = DateTime.Now;
|
|
||||||
item.NOTICE_STATUS = 4;
|
|
||||||
item.MODIFIER_ID = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
entity.ISSTOPSIGN = true;//停止签到
|
entity.ISSTOPSIGN = true;//停止签到
|
||||||
entity.MODIFY_TIME = DateTime.Now;
|
entity.MODIFY_TIME = DateTime.Now;
|
||||||
entity.STATUS = SETrainRecordStatus.已取消;
|
entity.STATUS = SETrainRecordStatus.已取消;
|
||||||
@ -219,8 +208,6 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
UpdateEntityNoCommit(entity);
|
UpdateEntityNoCommit(entity);
|
||||||
if (finishNotice != null)
|
if (finishNotice != null)
|
||||||
UpdateEntityNoCommit(finishNotice);
|
UpdateEntityNoCommit(finishNotice);
|
||||||
if (listTaskCancle != null && listTaskCancle.Count() > 0)
|
|
||||||
BantchSaveEntityNoCommit(listTaskCancle);
|
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user