public IHttpActionResult GetAll([UserProfile] UserProfile userProfile) { //只能获取当前集团信息 return(DoFunction(() => { PageResult <OPC_OrgInfo> lst; if (userProfile.IsSystem) { lst = _orgServiceService.GetAll(1, 10000); } else { var list = userProfile.OrgIds; var t = _orgServiceService.GetPagedList(new PagerRequest(1, 20000, 20000), list.ToList(), default(EnumOrgType?)); lst = new PageResult <OPC_OrgInfo>(t.Datas, t.TotalCount); } return lst.Result; }, "获得组织结构信息失败")); }