人员调度 调度人员 显示姓名(之前工号)
This commit is contained in:
parent
6b18de2898
commit
f4146f674e
@ -501,7 +501,10 @@ namespace APT.FM.WebApi.Controllers.Api.FM
|
||||
}
|
||||
entity.USER_ID = modelUOld.ID;
|
||||
entity.CREATE_TIME = DateTime.Now;
|
||||
entity.USERNAME_TRANSFER = APT.Infrastructure.Api.AppContext.CurrentSession.UserName;
|
||||
if (APT.Infrastructure.Api.AppContext.CurrentSession.UserID.HasValue)
|
||||
{
|
||||
entity.USERNAME_TRANSFER = GetEntity<T_FM_USER>(e => e.ID == APT.Infrastructure.Api.AppContext.CurrentSession.UserID.Value)?.NAME;
|
||||
}
|
||||
this.UnifiedCommit(() =>
|
||||
{
|
||||
UpdateEntityNoCommit(entity);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user