订阅事件枚举
事件类型 |
枚举值 |
审批创建 |
1 |
删除 |
2 |
还原 |
3 |
合并 |
4 |
订阅审批创建事件
POST
推送数据
属性名 |
类型 |
说明 |
approvalId |
整型 |
审批ID. |
approvalName |
字符串 |
审批名称. |
dataId |
整型 |
记录ID. |
submitUser |
对象 |
记录提交人 . |
submitUser.userId |
整型 |
记录提交人ID. |
submitUser.userName |
字符串 |
记录提交人名称. |
submitUser.email |
字符串 |
记录提交人邮箱. |
submitUser.userJobNumber |
字符串 |
记录提交人工号. |
time |
字符串 |
时间. |
objectId |
整型 |
对象ID. |
objectName |
字符串 |
对象Name. |
state |
整型 |
审批状态(1.未提交 2.审批中 3.通过 4.未通过 5.等待审批). |
approvalStepList |
数组 |
审批步骤列表. |
approvalStepList[].id |
整型 |
审批步骤Id. |
approvalStepList[].stepType |
整型 |
审批方式 1或签 2 会签. |
approvalStepList[].assigneeUserList |
数组 |
审批人列表. |
approvalStepList[].assigneeUserList[].userId |
整型 |
审批人ID. |
approvalStepList[].assigneeUserList[].userName |
字符串 |
审批人名称. |
approvalStepList[].assigneeUserList[].email |
字符串 |
审批人邮箱. |
approvalStepList[].assigneeUserList[].userJobNumber |
字符串 |
审批人工号. |
currentApprovalStep |
对象 |
当前的审批步骤 . |
currentApprovalStep.id |
整型 |
审批步骤Id. |
currentApprovalStep.stepType |
整型 |
审批方式 1或签 2 会签 |
currentApprovalStep.assigneeUserList |
数组 |
审批人列表. |
currentApprovalStep.assigneeUserList[].userId |
整型 |
审批人ID. |
currentApprovalStep.assigneeUserList[].userName |
字符串 |
审批人名称. |
currentApprovalStep.assigneeUserList[].email |
字符串 |
审批人邮箱. |
currentApprovalStep.assigneeUserList[].userJobNumber |
字符串 |
审批人工号. |
quickApprovalList |
数组 |
快速审批字段. |
quickApprovalList[].id |
整型 |
字段id. |
quickApprovalList[].label |
字符串 |
字段名称. |
quickApprovalList[].apiName |
字符串 |
字段api. |
approvalRecordList |
数组 |
审批记录. |
approvalRecordList[].sourceInstanceStep |
整型 |
来源审批步骤ID. |
approvalRecordList[].targetInstanceStepId |
整型 |
当前审批步骤ID. |
approvalRecordList[].nextInstanceStepId |
整型 |
下一个审批步骤ID. |
approvalRecordList[].approvalResult |
整型 |
审批结果 1 同意 0 不同意. |
approvalRecordList[].sourceAssigneeUserId |
整型 |
上一步审批人Id. |
approvalRecordList[].targetAssigneeUserId |
整型 |
本次审批人Id. |
推送示例
{
"approvalId":2867,
"approvalName":"工单审批",
"dataId":47377,
"submitUser":{
"userId":2,
"userName":"zhangsan",
"email":"1@test.cn",
"userJobNumber":"2222"
},
"time":"2021-04-08 13:39:46",
"objectId":343,
"objectName":"工单",
"state":1,
"approvalStepList":[
{
"id":1182,
"assigneeUserList":[
{
"userId":2,
"userName":"zhangsan",
"userJobNumber":"2222"
}
],
"stepType":2
},
{
"id":1183,
"assigneeUserList":[
{
"userId":2,
"userName":"zhangsan",
"userJobNumber":"2222"
}
],
"stepType":1
},
{
"id":1184,
"assigneeUserList":[
{
"userId":2,
"userName":"zhangsan",
"userJobNumber":"2222"
},
{
"userId":329,
"userName":"duanruixi22",
"userJobNumber":"11111"
}
],
"stepType":1
}
],
"currentApprovalStep":{
"id":1182,
"assigneeUserList":[
{
"userId":2,
"userName":"zhangsan",
"userJobNumber":"2222"
}
],
"stepType":2
}
}
订阅记录删除事件
POST
推送数据
属性名 |
类型 |
说明 |
event |
整型 |
事件类型枚举. |
eventName |
字符串 |
事件类型名称. |
operateTime |
字符串 |
操作时间 . |
operateUserId |
整型 |
操作用户id. |
operateUserName |
字符串 |
操作用户名称. |
objectId |
整型 |
操作对象id. |
objectName |
字符串 |
操作对象名称. |
showFieldList |
数组 |
对象字段列表. |
showFieldList[].id |
整型 |
字段id. |
showFieldList[].label |
字符串 |
字段名称. |
showFieldList[].fieldName |
字符串 |
字段API名称. |
showFieldList[].fieldType |
整型 |
字段类型. |
preMerge |
对象 |
删除的记录. |
preMerge.dataId |
整型 |
删除的记录id. |
preMerge.dataName |
字符串 |
删除的记录主字段名称. |
preMerge.fieldValueMap |
对象 |
k-v键值对,k(字段id),v(字段值). |
推送示例
{
"event": 2,
"eventName": "删除",
"operateTime": "2021-09-14 10:54:23",
"operateUserId": 2,
"operateUserName": "zhangsan",
"objectId": 1473,
"objectName": "货品管理",
"showFieldList": [
{
"id": 29959,
"label": "货品名称",
"fieldName": "goodsName",
"fieldType": 1
},
{
"id": 29965,
"label": "货品编号",
"fieldName": "goodsNumber",
"fieldType": 16
},
{
"id": 29966,
"label": "货品PN",
"fieldName": "goodsPn",
"fieldType": 1
},
{
"id": 29967,
"label": "货品简称",
"fieldName": "shortName",
"fieldType": 1
},
{
"id": 29968,
"label": "描述",
"fieldName": "describe",
"fieldType": 4
},
{
"id": 29969,
"label": "货品数量",
"fieldName": "quantityOfGoods",
"fieldType": 7
},
{
"id": 29970,
"label": "可用数量",
"fieldName": "availableQuantity",
"fieldType": 7
},
{
"id": 29971,
"label": "锁定数量",
"fieldName": "lockedQuantity",
"fieldType": 7
},
{
"id": 30104,
"label": "所属货类",
"fieldName": "suoshuhuolei",
"fieldType": 19
},
{
"id": 29960,
"label": "创建时间",
"fieldName": "createTime",
"fieldType": 6
},
{
"id": 29961,
"label": "更新时间",
"fieldName": "updateTime",
"fieldType": 6
},
{
"id": 29962,
"label": "创建人",
"fieldName": "createUser",
"fieldType": 21
},
{
"id": 29963,
"label": "修改人",
"fieldName": "updateUser",
"fieldType": 21
},
{
"id": 29964,
"label": "所有人",
"fieldName": "owner",
"fieldType": 23
}
],
"preMerge": {
"dataId": 478343,
"dataName": "梨",
"fieldValueMap": {
"29959": "梨",
"29960": "2021-09-07 17:19",
"29961": "2021-09-07 17:19",
"29962": "zhangsan",
"29963": "zhangsan",
"29964": "zhangsan",
"29965": "HPGL-0013",
"29966": "PN-li-009"
}
}
}
订阅记录还原事件
POST
推送数据
属性名 |
类型 |
说明 |
event |
整型 |
事件类型枚举. |
eventName |
字符串 |
事件类型名称. |
operateTime |
字符串 |
操作时间 . |
operateUserId |
整型 |
操作用户id. |
operateUserName |
字符串 |
操作用户名称. |
objectId |
整型 |
操作对象id. |
objectName |
字符串 |
操作对象名称. |
showFieldList |
数组 |
对象字段列表. |
showFieldList[].id |
整型 |
字段id. |
showFieldList[].label |
字符串 |
字段名称. |
showFieldList[].fieldName |
字符串 |
字段API名称. |
showFieldList[].fieldType |
整型 |
字段类型. |
preMerge |
对象 |
删除的记录. |
preMerge.dataId |
整型 |
删除的记录id. |
preMerge.dataName |
字符串 |
删除的记录主字段名称. |
preMerge.fieldValueMap |
对象 |
k-v键值对,k(字段id),v(字段值). |
推送示例
{
"event": 3,
"eventName": "还原",
"operateTime": "2021-09-14 10:54:23",
"operateUserId": 2,
"operateUserName": "zhangsan",
"objectId": 1473,
"objectName": "货品管理",
"showFieldList": [
{
"id": 29959,
"label": "货品名称",
"fieldName": "goodsName",
"fieldType": 1
},
{
"id": 29965,
"label": "货品编号",
"fieldName": "goodsNumber",
"fieldType": 16
},
{
"id": 29966,
"label": "货品PN",
"fieldName": "goodsPn",
"fieldType": 1
},
{
"id": 29967,
"label": "货品简称",
"fieldName": "shortName",
"fieldType": 1
},
{
"id": 29968,
"label": "描述",
"fieldName": "describe",
"fieldType": 4
},
{
"id": 29969,
"label": "货品数量",
"fieldName": "quantityOfGoods",
"fieldType": 7
},
{
"id": 29970,
"label": "可用数量",
"fieldName": "availableQuantity",
"fieldType": 7
},
{
"id": 29971,
"label": "锁定数量",
"fieldName": "lockedQuantity",
"fieldType": 7
},
{
"id": 30104,
"label": "所属货类",
"fieldName": "suoshuhuolei",
"fieldType": 19
},
{
"id": 29960,
"label": "创建时间",
"fieldName": "createTime",
"fieldType": 6
},
{
"id": 29961,
"label": "更新时间",
"fieldName": "updateTime",
"fieldType": 6
},
{
"id": 29962,
"label": "创建人",
"fieldName": "createUser",
"fieldType": 21
},
{
"id": 29963,
"label": "修改人",
"fieldName": "updateUser",
"fieldType": 21
},
{
"id": 29964,
"label": "所有人",
"fieldName": "owner",
"fieldType": 23
}
],
"preMerge": {
"dataId": 478343,
"dataName": "梨",
"fieldValueMap": {
"29959": "梨",
"29960": "2021-09-07 17:19",
"29961": "2021-09-07 17:19",
"29962": "zhangsan",
"29963": "zhangsan",
"29964": "zhangsan",
"29965": "HPGL-0013",
"29966": "PN-li-009"
}
}
}
订阅记录合并事件
POST
推送数据
属性名 |
类型 |
说明 |
event |
整型 |
事件类型枚举. |
eventName |
字符串 |
事件类型名称. |
operateTime |
字符串 |
操作时间. |
operateUserId |
整型 |
操作用户id. |
operateUserName |
字符串 |
操作用户名称. |
objectId |
整型 |
操作对象id. |
objectName |
字符串 |
操作对象名称. |
showFieldList |
数组 |
对象字段列表. |
showFieldList[].id |
整型 |
字段id. |
showFieldList[].label |
字符串 |
字段名称. |
showFieldList[].fieldName |
字符串 |
字段API名称. |
showFieldList[].fieldType |
整型 |
字段类型. |
preMerge |
对象 |
合并前的记录. |
preMerge.dataId |
整型 |
合并前的主记录id. |
preMerge.dataName |
字符串 |
合并前的主记录主字段名称. |
preMerge.fieldValueMap |
对象 |
k-v键值对,k(字段id),v(字段值). |
afterMerge |
对象 |
合并后的记录. |
afterMerge.dataId |
整型 |
合并后的记录id. |
afterMerge.fieldDataDtoMap |
对象 |
k-v键值对,k(字段id),v(字段值). |
mergedFieldDataList |
数组 |
被合并的记录. |
mergedFieldDataList[].dataId |
整型 |
被合并的记录id. |
mergedFieldDataList[].dataName |
字符串 |
被合并的记录主字段名称. |
mergedFieldDataList[].fieldValueMap |
对象 |
k-v键值对,k(字段id),v(字段值). |
推送示例
{
"event": 4,
"eventName": "合并",
"operateTime": "2021-09-14 11:22:48",
"operateUserId": 2,
"operateUserName": "zhangsan",
"objectId": 1473,
"objectName": "货品管理",
"showFieldList": [
{
"id": 29959,
"label": "货品名称",
"fieldName": "goodsName",
"fieldType": 1
},
{
"id": 29965,
"label": "货品编号",
"fieldName": "goodsNumber",
"fieldType": 16
},
{
"id": 29966,
"label": "货品PN",
"fieldName": "goodsPn",
"fieldType": 1
},
{
"id": 29967,
"label": "货品简称",
"fieldName": "shortName",
"fieldType": 1
},
{
"id": 29968,
"label": "描述",
"fieldName": "describe",
"fieldType": 4
},
{
"id": 29969,
"label": "货品数量",
"fieldName": "quantityOfGoods",
"fieldType": 7
},
{
"id": 29970,
"label": "可用数量",
"fieldName": "availableQuantity",
"fieldType": 7
},
{
"id": 29971,
"label": "锁定数量",
"fieldName": "lockedQuantity",
"fieldType": 7
},
{
"id": 30104,
"label": "所属货类",
"fieldName": "suoshuhuolei",
"fieldType": 19
},
{
"id": 29960,
"label": "创建时间",
"fieldName": "createTime",
"fieldType": 6
},
{
"id": 29961,
"label": "更新时间",
"fieldName": "updateTime",
"fieldType": 6
},
{
"id": 29962,
"label": "创建人",
"fieldName": "createUser",
"fieldType": 21
},
{
"id": 29963,
"label": "修改人",
"fieldName": "updateUser",
"fieldType": 21
},
{
"id": 29964,
"label": "所有人",
"fieldName": "owner",
"fieldType": 23
}
],
"preMerge": {
"dataId": 478343,
"dataName": "梨",
"fieldValueMap": {
"29959": "梨",
"29960": "2021-09-07 17:19",
"29961": "2021-09-14 11:17",
"29962": "zhangsan",
"29963": "zhangsan",
"29964": "zhangsan",
"29965": "HPGL-0013",
"29966": "PN-li-009"
}
},
"afterMerge": {
"dataId": 478343,
"fieldDataDtoMap": {
"29959": {
"fieldId": 29959,
"fieldValue": "梨",
"dataId": 478343,
"primary": false
},
"29966": {
"fieldId": 29966,
"fieldValue": "PN-li-002",
"dataId": 478340,
"primary": false
}
}
},
"mergedFieldDataList": [
{
"dataId": 478340,
"dataName": "梨",
"fieldValueMap": {
"29959": "梨",
"29960": "2021-09-06 20:00",
"29961": "2021-09-06 20:00",
"29962": "zhangsan",
"29963": "zhangsan",
"29964": "zhangsan",
"29965": "HPGL-0012",
"29966": "PN-li-002"
}
}
]
}