接口 CompositeOrgBaseService

  • 所有已知实现类:
    CompositeOrgBaseServiceImpl

    public interface CompositeOrgBaseService
    组合的组织节点 service
    从以下版本开始:
    9.6.3
    作者:
    shidaobang
    Date:
    2023/07/31
    • 方法详细资料

      • countByGuidPath

        long countByGuidPath​(String guidPath,
                             net.risesoft.enums.platform.OrgTreeTypeEnum orgTreeTypeEnum)
        根据组织树类型和ID路径计数成员(可能是岗位和人员计数)
        参数:
        guidPath - GUID路径
        orgTreeTypeEnum - 树型
        返回:
        long
      • deptPage

        org.springframework.data.domain.Page<Y9Department> deptPage​(String orgId,
                                                                    int page,
                                                                    int rows)
        分页获取机构下的部门列表
        参数:
        orgId - 机构id
        page -
        rows -
        返回:
      • findOrgUnit

        Optional<Y9OrgBase> findOrgUnit​(String orgUnitId)
        根据指定id获取ORGBase对象(可以是org的任意类型)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • findOrgUnitAsParent

        Optional<Y9OrgBase> findOrgUnitAsParent​(String orgUnitId)
        根据id获取作为父节点的组织节点(只可能是组织机构和部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • findOrgUnitBureau

        Optional<Y9OrgBase> findOrgUnitBureau​(String orgUnitId)
        根据组织节点id获取所在委办局(可能是组织机构或部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • findOrgUnitDeleted

        Optional<Y9OrgBase> findOrgUnitDeleted​(String orgUnitId)
        根据指定id获取已删除的组织节点对象(可以是org的任意类型)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • findOrgUnitOrganization

        Optional<Y9Organization> findOrgUnitOrganization​(String orgUnitId)
        获取组织节点所在组织机构
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • findOrgUnitParent

        Optional<Y9OrgBase> findOrgUnitParent​(String orgUnitId)
        根据组织节点id,获取其父节点(只可能是组织机构和部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        ORGBase
      • findOrgUnitPersonOrPosition

        Optional<Y9OrgBase> findOrgUnitPersonOrPosition​(String orgUnitId)
        根据id获得组织节点对象(人员或岗位)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnit

        Y9OrgBase getOrgUnit​(String orgUnitId)
        根据指定id获取ORGBase对象(可以是org的任意类型)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnitAsParent

        Y9OrgBase getOrgUnitAsParent​(String orgUnitId)
        根据id获取作为父节点的组织节点(只可能是组织机构和部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnitBureau

        Y9OrgBase getOrgUnitBureau​(String orgUnitId)
        根据组织节点id获取所在委办局(可能是组织机构或部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnitDeleted

        Y9OrgBase getOrgUnitDeleted​(String orgUnitId)
        根据指定id获取已删除的组织节点对象(可以是org的任意类型)
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnitOrganization

        Y9Organization getOrgUnitOrganization​(String orgUnitId)
        获取组织节点所在组织机构
        参数:
        orgUnitId - 组织节点id
        返回:
        Y9OrgBase
      • getOrgUnitParent

        Y9OrgBase getOrgUnitParent​(String orgUnitId)
        根据组织节点id,获取其父节点(只可能是组织机构和部门)
        参数:
        orgUnitId - 组织节点id
        返回:
        ORGBase
      • getSyncMap

        HashMap<String,​Serializable> getSyncMap​(String syncId,
                                                      net.risesoft.enums.platform.OrgTypeEnum orgType,
                                                      Integer needRecursion)
        根据syncId,orgType,needRecursion进行查找
        参数:
        syncId - 同步的组织机构id
        orgType - 机构类型:Organization(组织),Department(部门),Group(用户组),Position(岗位),Person(人员),PersonLink(人员)
        needRecursion - 是否递归
        返回:
        HashMap<String, Serializable>
      • getSyncOrgUnits

        net.risesoft.model.platform.SyncOrgUnits getSyncOrgUnits​(String organizationId,
                                                                 net.risesoft.enums.platform.OrgTypeEnum orgTypeEnum,
                                                                 boolean recursionRequired)
      • getTree

        List<Y9OrgBase> getTree​(String id,
                                net.risesoft.enums.platform.OrgTreeTypeEnum treeType,
                                Boolean disabled)
        获取机构树子节点
        参数:
        id - 组织节点id
        treeType - 树类型
        disabled - 节点是否禁用
        返回:
        List<Y9OrgBase>
      • getTree4DeptManager

        List<Y9OrgBase> getTree4DeptManager​(String id,
                                            net.risesoft.enums.platform.OrgTreeTypeEnum treeType)
        子域三员获取部门树
        参数:
        id - 组织节点id
        treeType - 树类型
        返回:
        List<Y9OrgBase>
      • listAllByParentId

        List<Y9Person> listAllByParentId​(String parentId)
        根据父节点id,获取子节点下的所有人员,包括用户组和岗位下的人员
        参数:
        parentId - 父节点id
        返回:
        List<Y9Person>
      • listAllDescendantPersons

        List<Y9Person> listAllDescendantPersons​(String parentId)
        根据父节点id,递归获取其下所有人员
        参数:
        parentId - 父节点id
        返回:
        List<Y9Person>
      • listAllDescendantPersons

        List<Y9Person> listAllDescendantPersons​(String parentId,
                                                Boolean disabled)
        根据父节点id,递归获取其下所有没有禁用/禁用人员
        参数:
        parentId - 父节点id
        disabled - 是否禁用
        返回:
        List<Y9Person>
      • listAllOrgUnits

        List<Y9OrgBase> listAllOrgUnits​(String orgId)
        根据组织节点id向下递归获取所有组织节点
        参数:
        orgId - 组织节点id
        返回:
        List<Y9OrgBase>
      • listAllPositionsRecursionDownward

        List<Y9Position> listAllPositionsRecursionDownward​(String parentId)
        根据父节点id,递归获取其下所有岗位
        参数:
        parentId - 父节点id
        返回:
        List<Y9Position>
      • personPage

        org.springframework.data.domain.Page<Y9Person> personPage​(String orgId,
                                                                  String type,
                                                                  int page,
                                                                  int rows)
        分页获取机构下的人员列表
        参数:
        orgId - 机构id
        type - 0-查全量,1-查询没被禁用的
        page -
        rows -
        返回:
      • searchAllPersonsRecursionDownward

        List<Y9Person> searchAllPersonsRecursionDownward​(String parentId,
                                                         String name,
                                                         Boolean disabled)
        根据父节点id,人员姓名,是否禁用,递归获取其下所有人员
        参数:
        parentId - 父节点id
        name - 组织节点名称
        disabled - 是否禁用
        返回:
        List<Y9Person>
      • sort

        void sort​(List<String> orgUnitIds)
        排序
        参数:
        orgUnitIds - 组织节点id
      • sync

        void sync​(String syncId,
                  net.risesoft.enums.platform.OrgTypeEnum orgType,
                  boolean needRecursion,
                  String targetSystemName)
        同步数据到消息中间件
        参数:
        syncId - 同步的组织机构id
        orgType - 组织节点类型
        needRecursion - 是否递归获取
        targetSystemName - 目标系统名
      • treeSearch

        List<Y9OrgBase> treeSearch​(String name,
                                   net.risesoft.enums.platform.OrgTreeTypeEnum treeType)
        根据name,和结构树类型查询机构主体
        参数:
        name - 组织节点名称
        treeType - 树类型
        返回:
        List<Y9OrgBase>
      • treeSearch

        List<Y9OrgBase> treeSearch​(String name,
                                   net.risesoft.enums.platform.OrgTreeTypeEnum treeType,
                                   Boolean disabled)
        根据name,和结构树类型查询机构主体(不含禁用人员)
        参数:
        name - 组织节点名称
        treeType - 树类型
        disabled - 是否包含禁用的组织节点
        返回:
        List<Y9OrgBase>
      • treeSearch

        List<Y9OrgBase> treeSearch​(String name,
                                   net.risesoft.enums.platform.OrgTreeTypeEnum treeType,
                                   String dnName,
                                   Boolean disabled)
        根据name,和结构树类型查询机构主体
        参数:
        name - 组织节点名称
        treeType - 树类型
        dnName - dn
        disabled -
        返回:
        List<Y9OrgBase>
      • treeSearch4DeptManager

        List<Y9OrgBase> treeSearch4DeptManager​(String name,
                                               net.risesoft.enums.platform.OrgTreeTypeEnum treeType)
        根据name,和结构树类型查询机构主体
        参数:
        name - 组织节点名称
        treeType - 树类型
        返回:
        List<Y9OrgBase>