更新日期:     浏览次数:

1. 人员兼职API列表

接口名称 URL 备注
根据部门id批量设置兼职 /gateway/openimport/open/company/addPartTimeJobs
根据部门长名称批量设置兼职 /gateway/openimport/open/company/addPartTimeJobsFull
根据部门id批量删除兼职 /gateway/openimport/open/company/deletePartTimeJobs
删除所有兼职 /gateway/openimport/open/relationship/deleteAllPartTimeJobs
批量查询兼职 /gateway/openimport/open/company/queryPartTimeJobs

1.1. 根据部门id批量设置兼职

描述: 批量设置兼职,设置一个人员为其它部门的兼职人员。

URL: /gateway/openimport/open/company/addPartTimeJobs?accessToken=xxxxxx

输入: 参见输入参数,其中data字段格式如下:

[
  {
   "commitId": String, //提交ID
   "openId": String, // 人员ID
   "orgId": String, // 部门ID
   "jobTitle": String // 兼职职位
  }
]

输出: 参见输出结果,其中data字段格式如下:

[
  { //只有在有失败数据时返回
   "commitId": String, //提交ID
   "errorMsg": String //此处标识失败原因
  }
]

1.2. 根据部门长名称批量设置兼职

描述: 批量设置兼职,设置一个人员为其它部门的兼职人员,同时可以指定兼职的权重,不传默认是取主职的权重,是否兼职部门负责人。

URL: /gateway/openimport/open/company/addPartTimeJobsFull?accessToken=xxxxxx

输入: 参见输入参数,其中data字段格式如下:

[
  {
    "commitId": "123123", //提交ID
    "jobTitle": "w1000", //兼职职位
    "openId": "580d9fa000b0911f84defd61",
    "department": "骨2科", //兼职部门长名称
    "weights": 1000, //用于兼职排序时的权重
    "orgUserType": 1 //是否设为兼职部门负责人
  }
]

输出: 参见输出结果,其中data字段格式如下:

[
  { //只有在有失败数据时返回
   "commitId": String, //提交ID
   "errorMsg": String //此处标识失败原因
  }
]

1.3. 根据部门id批量删除兼职

描述: 根据部门id批量删除兼职

URL: /gateway/openimport/open/company/deletePartTimeJobs?accessToken=xxxxxx

输入: 参见输入参数,其中data字段格式如下:

[
  {
   "commitId": String, //提交ID
   "openId": String, // 人员ID
   "orgId": String // 部门ID
  }
]

输出: 参见输出结果,其中data字段格式如下:

[
  { //只有在有失败数据时返回
   "commitId": String, //提交ID
   "errorMsg": String //此处标识失败原因
  }
]

1.4. 删除所有兼职

描述: 删除所有兼职

URL: /gateway/openimport/open/relationship/deleteAllPartTimeJobs?accessToken=xxxxxx

输入: 参见输入参数,其中data字段格式如下:

{
  "deleteAll": Boolean, //是否删除所有,默认值为false。该值传true时,表示删除所有部门负责人(此时list可以不传);该值为false时,表示删除指定部门负责人,list字段必传。
  "list": [ //指定人员删除时,最多允许一次删除1000条记录
      {
      "openId": String, // 人员ID
      "orgId": String // 部门ID
      }
  ]
}

1.5. 批量查询兼职

描述: 批量查询兼职

URL: /gateway/openimport/open/company/queryPartTimeJobs?accessToken=xxxxxx

输入: 参见输入参数,其中data字段格式如下:

{
  "begin": int, // 起始
  "count": int // 条数
}

输出: 参见输出结果,其中data字段格式如下:

[
  {
   "openId": String, // 人员ID
   "orgId": String, // 部门ID
   "jobTitle": String // 兼职职位
  }
]

1.6. FAQ

暂无

results matching ""

    No results matching ""