From bf525c9e512cbf78d75aae1241900ded385d3d25 Mon Sep 17 00:00:00 2001 From: liangkun Date: Thu, 3 Mar 2022 16:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E5=89=8D=E8=8A=82=E7=82=B9=E5=8A=9E?= =?UTF-8?q?=E7=90=86=E4=BA=BA=20+=E9=83=A8=E9=97=A8=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LR_NewWorkFlow/Controllers/NWFProcessController.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)); }