Пример #1
0
        public IHttpActionResult Query(int currentPage = 1, int pageSize = 100, string name = "", string id = "", string orgid = "")
        {
            if (name == null || name == "undefined")
            {
                name = "";
            }
            BaseRequest <DeptFilter> request = new BaseRequest <DeptFilter>
            {
                CurrentPage = currentPage,
                PageSize    = pageSize,
                Data        =
                {
                    DeptName = name,
                    DeptNo   = name,
                    OrgId    = SecurityHelper.CurrentPrincipal.OrgId
                }
            };

            //自定义机构查询 针对超级管理员zhongyh
            if (!string.IsNullOrEmpty(orgid))
            {
                request.Data.OrgId = orgid;
            }


            var response = DeptService.QueryDeptExtend(request);

            return(Ok(response));
        }