diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs index d3df61f1a..8cdb35b3a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs @@ -24,6 +24,7 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers private UserIBLL userIbll = new UserBLL(); private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); + private DepartmentIBLL departmentIbll = new DepartmentBLL(); #region 视图功能 /// @@ -868,7 +869,9 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers List nextlist = nWFTaskIBLL.GetTaskUserList(F_TaskId).Select(m => m.F_UserId).ToList(); foreach (var uid in nextlist) { - usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName); + var userentity = userIbll.GetEntityByUserId(uid); + string deptname = departmentIbll.GetEntity(userentity?.F_DepartmentId)?.F_FullName; + usernamelist.Add("["+ deptname + "]"+userentity?.F_RealName); } return SuccessString(string.Join(",", usernamelist)); } @@ -883,7 +886,9 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers List nextlist = nWFTaskIBLL.GetTaskUserList(tasklist.F_Id).Select(m => m.F_UserId).ToList(); foreach (var uid in nextlist) { - usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName); + var userentity = userIbll.GetEntityByUserId(uid); + string deptname = departmentIbll.GetEntity(userentity?.F_DepartmentId)?.F_FullName; + usernamelist.Add("[" + deptname + "]" + userentity?.F_RealName); } return SuccessString(string.Join(",", usernamelist)); }