/// <summary> /// 获取当前低于当前角色的用户列表 /// </summary> /// <returns></returns> public List <WcsUser> GetUserList() { List <WcsUser> list = new List <WcsUser>(); if (LoginUser == null) { return(list); } List <WcsRole> controlrole = GetBelowLoginRoleList(); return(UserList.FindAll(c => c.id == LoginUser.id || controlrole.Exists(l => l.id == c.role_id))); }