接口 OrgSyncApi


  • @Validated
    public interface OrgSyncApi
    组织同步组件
    从以下版本开始:
    9.6.0
    作者:
    dingzhaojun, qinman, mengjuhua
    Date:
    2022/2/10
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      net.risesoft.pojo.Y9Result<net.risesoft.model.platform.MessageOrg<net.risesoft.model.platform.SyncOrgUnits>> fullSync​(@NotBlank String appName, @NotBlank String tenantId, @NotBlank String organizationId)
      根据机构id,全量获取整个组织机构所有组织节点数据
      net.risesoft.pojo.Y9Page<net.risesoft.model.platform.Department> fullSyncDept​(String appName, String tenantId, int page, int rows)
      分页获取部门数据
      net.risesoft.pojo.Y9Page<net.risesoft.model.platform.Person> fullSyncUser​(String appName, String tenantId, String type, int page, int rows)
      分页获取人员数据
      net.risesoft.pojo.Y9Result<List<net.risesoft.model.platform.MessageOrg<net.risesoft.model.platform.OrgUnit>>> incrSync​(@NotBlank String appName, @NotBlank String tenantId)
      增量获取组织操作列表 系统记录了上一次同步的时间,从上一次同步时间往后获取数据
      net.risesoft.pojo.Y9Result<String> syncTime​(String appName, String tenantId)
      返回增量接口处理结果,刷新同步时间
    • 方法详细资料

      • fullSync

        @GetMapping("/fullSync")
        net.risesoft.pojo.Y9Result<net.risesoft.model.platform.MessageOrg<net.risesoft.model.platform.SyncOrgUnits>> fullSync​(@RequestParam("appName") @NotBlank
                                                                                                                              @NotBlank String appName,
                                                                                                                              @RequestParam("tenantId") @NotBlank
                                                                                                                              @NotBlank String tenantId,
                                                                                                                              @RequestParam("organizationId") @NotBlank
                                                                                                                              @NotBlank String organizationId)
        根据机构id,全量获取整个组织机构所有组织节点数据
        参数:
        appName - 应用名称
        tenantId - 租户id
        organizationId - 机构id
        返回:
        Y9Result<MessageOrg> 通用请求返回对象 - data 是整个组织机构所有组织节点集合
        从以下版本开始:
        9.6.0
      • fullSyncDept

        @GetMapping("/fullSyncDept")
        net.risesoft.pojo.Y9Page<net.risesoft.model.platform.Department> fullSyncDept​(@RequestParam
                                                                                      String appName,
                                                                                      @RequestParam
                                                                                      String tenantId,
                                                                                      @RequestParam
                                                                                      int page,
                                                                                      @RequestParam
                                                                                      int rows)
        分页获取部门数据
        参数:
        appName - 应用名称
        tenantId - 租户id
        page - 页数,初始值为1
        rows - 每页返回数
        返回:
        Y9Result<Department> 通用分页对象 - 部门数据
      • fullSyncUser

        @GetMapping("/fullSyncUser")
        net.risesoft.pojo.Y9Page<net.risesoft.model.platform.Person> fullSyncUser​(@RequestParam
                                                                                  String appName,
                                                                                  @RequestParam
                                                                                  String tenantId,
                                                                                  @RequestParam
                                                                                  String type,
                                                                                  @RequestParam
                                                                                  int page,
                                                                                  @RequestParam
                                                                                  int rows)
        分页获取人员数据
        参数:
        appName - 应用名称
        tenantId - 租户id
        type - 0-查全量,1-查询没被禁用的
        page - 页数,初始值为1
        rows - 每页返回数
        返回:
        Y9Result<Person> 通用分页对象 - 人员数据
      • incrSync

        @GetMapping("/incrSync")
        net.risesoft.pojo.Y9Result<List<net.risesoft.model.platform.MessageOrg<net.risesoft.model.platform.OrgUnit>>> incrSync​(@RequestParam("appName") @NotBlank
                                                                                                                               @NotBlank String appName,
                                                                                                                               @RequestParam("tenantId") @NotBlank
                                                                                                                               @NotBlank String tenantId)
        增量获取组织操作列表 系统记录了上一次同步的时间,从上一次同步时间往后获取数据
        参数:
        appName - 应用名称
        tenantId - 租户id
        返回:
        Y9Result<List<MessageOrg>> 通用请求返回对象 - data 是事件列表
        从以下版本开始:
        9.6.0
      • syncTime

        @GetMapping("/syncTime")
        net.risesoft.pojo.Y9Result<String> syncTime​(@RequestParam
                                                    String appName,
                                                    @RequestParam
                                                    String tenantId)
        返回增量接口处理结果,刷新同步时间
        参数:
        appName - 应用名称
        tenantId - 租户id
        返回:
        Y9Result<String> 通用请求返回对象 - 增量接口处理结果