/// <summary>
        /// GetStaffDataTableByPermissionScope
        /// </summary>
        /// <param name="userInfo"></param>
        /// <param name="userId"></param>
        /// <param name="permissionCode">权限编码</param>
        /// <returns></returns>
        public DataTable GetStaffDataTableByPermissionScope(BaseUserInfo userInfo, string userId, string permissionCode)
        {
            var dt = new DataTable(BaseUserEntity.CurrentTableName);

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) =>
            {
                // 获得组织机构列表
                var manager = new BasePermissionScopeManager(dbHelper, userInfo);
                // 若权限是空的,直接返回所有数据
                if (!string.IsNullOrEmpty(permissionCode))
                {
                    // 被管理部门的列表
                    var organizationIds = manager.GetOrganizationIds(userInfo.SystemCode, userId, permissionCode, false);
                    var staffManager    = new BaseStaffManager(dbHelper, userInfo);
                    dt           = staffManager.GetDataTableByOrganizations(organizationIds);
                    dt.TableName = BaseStaffEntity.CurrentTableName;
                }
            });
            return(dt);
        }