From 5eb0bee378cf42ea02a4ef1d3f8579f3792637d9 Mon Sep 17 00:00:00 2001 From: liangkun Date: Tue, 1 Sep 2020 17:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=B8=AD=EF=BC=8C=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BD=93=E5=89=8D=E8=A7=92=E8=89=B2=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=BC=BA=E5=A4=B1=EF=BC=8C=E5=86=99=E5=85=A5?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Util/Learun.Util.Operat/OperatorHelper.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs index 52b21ea47..f2fdaa45a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs @@ -324,6 +324,14 @@ namespace Learun.Util.Operat userInfo.Description = userEntity.F_Description; userInfo.roleIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 1); + if (!string.IsNullOrEmpty(userInfo.roleIds)) + { + var rolelist = userRelationIBLL.GetRoleListByUserId(userEntity.F_UserId); + foreach (var roleEntity in rolelist) + { + userInfo.roleName += roleEntity.F_FullName+ ","; + } + } userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2); userInfo.companyIds = companyIBLL.GetSubNodes(userEntity.F_CompanyId); userInfo.departmentIds = departmentIBLL.GetSubNodes(userEntity.F_CompanyId, userEntity.F_DepartmentId);