审批流批量修改
- 接口:common/workflow/batch
- Method:POST
- 数据格式:JSON
- 限流信息:100次每天和50次每小时
- 多语言环境:在接口请求头中添加Key为locale,Value值为语言环境,目前支持的语言有zh_CN(中文)、en_US(英文)、ja_JP(日文)、zh_TW(繁体),请选取其中一种
- 接口说明:审批流的批量更新
- 其他补充信息:
- 当前单据的工作流条数最大的条数支持 30 条
- 工作流节点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.code |
String |
单据号 |
TRUE |
64 |
data.path_lsit.workflow_type |
String |
工作流类型 |
TRUE |
16 |
data.path_lsit.sequence_num |
Integer |
第几个节点 |
TRUE |
10 |
data.path_lsit.status |
String |
类型 |
TRUE |
64 |
data.path_lsit.type |
String |
类型 |
TRUE |
16 |
data.path_lsit.position_code |
String |
职位编码 |
FALSE |
64 |
data.path_lsit.employee_number |
String |
员工号 |
FALSE |
64 |
data.path_lsit.note |
String |
批注 |
FALSE |
255 |
data.path_lsit.open_date |
Long |
开始日期(13位数字时间戳) |
FALSE |
13 |
data.path_lsit.end_date |
Long |
审批日期(13位数字时间戳) |
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": {
"validatorErrors": [],
"created": "此次请求新建成功了2条数据",
"warnings": [
{
"code": "100",
"messages": [
"warningMassage"
]
}
],
"dbErrors": []
}
}