审批流批量修改

  • 接口:common/workflow/batchUpdate
  • Method:POST
  • 数据格式:JSON
  • 限流信息:100次每天和50次每小时
  • 多语言环境:在接口请求头中添加Key为locale,Value值为语言环境,目前支持的语言有zh_CN(中文)、en_US(英文)、ja_JP(日文)、zh_TW(繁体),请选取其中一种
  • 接口说明:审批流的批量更新
  • 其他补充信息:
    • 更新对应单据的审批流
    • 工作流节点note字段只支持64个字符,超过的只保存前64个字符
    • type代表工作节点流类型支持 P审批 A财务审核 O提交意见 C抄送
    • status工作流节点状态支持aborted approved approving copied open rejected withdrawed

请求参数

参数:

请求参数

字段名称 字段类型 字段描述 是否必填 长度限制(字节)
bizId String 当前次接口同步的唯一标识 TRUE 36
timestamp Long 当前次接口同步时间对应的时间戳 TRUE 13
data.document_num String 单据号 TRUE 64
data.workflow_path.path_id Integer 节点ID TRUE 16
data.workflow_path.workflow_type String 工作流类型 TRUE 16
data.workflow_path.status String 类型 FALSE 64
data.workflow_path.type String 类型 FALSE 16
data.workflow_path.position_code String 职位编码 FALSE 64
data.workflow_path.employee_number String 员工号 FALSE 64
data.workflow_path.note String 批注 FALSE 255
data.workflow_path.open_date Long 开始日期(13位数字时间戳) FALSE 13
data.workflow_path.end_date Long 审批日期(13位数字时间戳) FALSE 13
data.workflow_path.function String 审批职能 U 指定用户 P 指定职位 FALSE 13

返回参数

字段名称 字段类型 字段描述
resCode Integer 状态码(200000/500000)
resMsg String 返回信息描述(更新成功/更新失败)

示例:

请求数据

{
  "bizId": "d162175f-5bdf-43c8-a245-a013dc219ffd",
  "timestamp": 1591261960559,
  "data": [{
    "code": "xxxxxxxx",
    "path_list": [{
      "workflow_type": "EXP",
      "sequence_num": 1,
      "status": "approved",
      "type": "P",
      "position_code": "T0001",
      "employee_number": "员工号",
      "note": "批注",
      "open_date": "1670226818000",
      "end_date": "1670226818000"
    }, {
      "workflow_type": "EXP",
      "sequence_num":2 ,
      "status": "open",
      "type": "A",
      "position_code": "T0001",
      "employee_number": "员工号",
      "note": "批注",
      "open_date": "1670226818000",
      "end_date": "1670226818000"
    }]
  }, {
    "code": "xxxxxxxx",
    "path_list": [{
      "workflow_type": "EXP",
      "sequence_num": 1,
      "status": "open",
      "type": "U",
      "position_code": "T0001",
      "employee_number": "员工号",
      "note": "批注",
      "open_date": "1670226818000",
      "end_date": "1670226818000"
    }, {
      "workflow_type": "EXP",
      "sequence_num":2,
      "status": "approved",
      "type": "P",
      "position_code": "T0001",
      "employee_number": "员工号",
      "note": "批注",
      "open_date": "1670226818000",
      "end_date": "1670226818000"
    }]
  }]
}

返回数据

{
  "resCode": 200000,
  "resMsg": "success",
  "bizId": "5f282bbb-7c80-4117-863f-a5fd775e0309",
  "data": {
    r
  }
}

results matching ""

    No results matching ""