xiaodian.org.employee.batchUpdateDept

  • 免费
  • 无需授权

API功能描述(支持get和post)

批量修改员工的部门

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
batchUpdateEmployeeDto Object 批量更新员工部门对象
employeeIds Number[] 员工id列表(员工id列表,工号列表,三方工号列表不许都为空)
employeeNos String[] 员工编号列表
thirdEmployeeNos String[] 三方员工编码
deptId String 部门id(部门id和三方部门id不能都为空,优先取部门id)
thirdDeptId String 三方部门id

返回参数

名称 类型 描述 默认值
status Object 状态对象
code String 状态码 0000000
msg String 状态信息 请求成功
result Object 返回结果
data Boolean 结果数据 true
success Boolean 是否成功 true

请求参数示例

1).
{ "batchUpdateEmployeeDto":{ "employeeIds":[66, 67], "deptId":"11u" } }

返回示例

1).
{ "status": { "code": "0000000", "msg": "请求成功" }, "result": { "data": true }, "success": true }

异常示例