人员调度 调度人员 显示姓名(之前工号)

This commit is contained in:
wyw 2026-07-01 17:19:45 +08:00
parent 6b18de2898
commit f4146f674e

View File

@ -501,7 +501,10 @@ namespace APT.FM.WebApi.Controllers.Api.FM
} }
entity.USER_ID = modelUOld.ID; entity.USER_ID = modelUOld.ID;
entity.CREATE_TIME = DateTime.Now; 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(() => this.UnifiedCommit(() =>
{ {
UpdateEntityNoCommit(entity); UpdateEntityNoCommit(entity);