接口 Y9DepartmentService

  • 所有已知实现类:
    Y9DepartmentServiceImpl

    public interface Y9DepartmentService
    作者:
    dingzhaojun, qinman, mengjuhua
    Date:
    2022/2/10
    • 方法详细资料

      • delete

        void delete​(String id)
        根据主键id删除部门实例
        参数:
        id - 部门id
      • existsById

        boolean existsById​(String id)
        根据id判断部门是否存在
        参数:
        id - 部门id
        返回:
        boolean
      • findById

        Optional<Y9Department> findById​(String id)
        根据id查找部门
        参数:
        id - 部门id
        返回:
        部门对象 或 null
      • getById

        Y9Department getById​(String id)
        根据主键id获取部门实例
        参数:
        id - 部门id
        返回:
        OrgDepartment
        抛出:
        net.risesoft.y9.exception.Y9NotFoundException - id 对应的记录不存在的情况
      • listBureauByNameLike

        List<Y9Department> listBureauByNameLike​(String name,
                                                Boolean disabled)
        根据名称查询委办局列表
        参数:
        name - 部门名
        disabled -
        返回:
        List<Y9Department>
        从以下版本开始:
        9.6.6
      • listDepartmentPropOrgUnits

        List<Y9OrgBase> listDepartmentPropOrgUnits​(String deptId,
                                                   Integer category,
                                                   Boolean disabled)
        组织节点(人员或岗位)列表
        参数:
        deptId - 部门ID
        category - 部门属性类型
        disabled - 是否禁用
        返回:
        List<Y9OrgBase>
      • listRecursivelyByParentId

        List<Y9Department> listRecursivelyByParentId​(String orgBaseId,
                                                     Boolean disabled)
        获得部门树
        参数:
        orgBaseId - :机构节点唯一标识(可能是机构id,也可能是部门id)
        disabled -
        返回:
        List<Y9Department>
      • removeDepartmentProp

        void removeDepartmentProp​(String deptId,
                                  Integer category,
                                  String orgBaseId)
      • saveProperties

        Y9Department saveProperties​(String id,
                                    String properties)
        保存或者更新部门扩展信息
        参数:
        id - 部门唯一标识
        properties - 扩展属性
        返回:
        Y9Department
      • setDepartmentPropOrgUnits

        void setDepartmentPropOrgUnits​(String deptId,
                                       Integer category,
                                       List<String> orgBaseIds)
        设置部门属性组织节点
        参数:
        deptId - 部门ID
        category - 部门属性类型
        orgBaseIds - 组织节点ID
      • updateTabIndex

        Y9Department updateTabIndex​(String id,
                                    int tabIndex)
        更新部门排列序号
        参数:
        id - 部门唯一标识
        tabIndex - 排列序号
        返回:
        Y9Department