类 OrgSyncApiImpl

  • 所有已实现的接口:
    OrgSyncApi

    @Primary
    @Validated
    @RestController
    @RequestMapping(value="/services/rest/v1/orgSync",
                    produces="application/json")
    public class OrgSyncApiImpl
    extends Object
    implements 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)  
    • 构造器详细资料

      • OrgSyncApiImpl

        public OrgSyncApiImpl()
    • 方法详细资料

      • fullSync

        public 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,全量获取整个组织机构所有组织节点数据
        指定者:
        fullSync 在接口中 OrgSyncApi
        参数:
        appName - 应用名称
        tenantId - 租户id
        organizationId - 机构id
        返回:
        Y9Result<MessageOrg> 通用请求返回对象 - data 是整个组织机构所有组织节点集合
        从以下版本开始:
        9.6.0
      • fullSyncDept

        public net.risesoft.pojo.Y9Page<net.risesoft.model.platform.Department> fullSyncDept​(@RequestParam
                                                                                             String appName,
                                                                                             @RequestParam
                                                                                             String tenantId,
                                                                                             @RequestParam
                                                                                             int page,
                                                                                             @RequestParam
                                                                                             int rows)
        指定者:
        fullSyncDept 在接口中 OrgSyncApi
      • fullSyncUser

        public 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)
        指定者:
        fullSyncUser 在接口中 OrgSyncApi
      • incrSync

        public 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)
        增量获取组织操作列表 系统记录了上一次同步的时间,从上一次同步时间往后获取数据
        指定者:
        incrSync 在接口中 OrgSyncApi
        参数:
        appName - 应用名称
        tenantId - 租户id
        返回:
        Y9Result<List<MessageOrg>> 通用请求返回对象 - data 是事件列表
        从以下版本开始:
        9.6.0