🎉 开放平台文档站换新颜。 欢迎填问卷给我们建议,意见,反馈,夸夸 →
Skip to Content
API文档通用能力接口任务中心获取待办、已办列表

获取待办、已办列表

最近更新时间: 2025年02月25日 01时34分48秒
能力接口

描述

获取待办、已办列表。

支持的模式

客户端模式,授权码模式

请求方法

GET

请求地址

https://api.tongji.edu.cn/v1/infra/task_center/task_list

数据来源

请求参数

参数名是否必填备注
status状态 1:待处理 ,3:已处理
p页码
appId来源id_事项id (固定格式,来源id=0代表一站式。如果要查询某个来源id下的所有事项,比如查询OA则需传appId=4_0)
departmentId部门id
userId人员学工号
pageSize分页大小
startTime发起时间
endTime结束时间
instId实例id
keyword搜索关键词(模糊查询)
keywordType检索类型:appuser: 应用名称、发起人姓名工号 all: 应用名称、发起人姓名工号、部门名称 user: 发起人姓名工号
thirdpartyName任务名称(模糊查询)

返回参数

参数名类型备注码表
taskIdint任务ID
nodeNamestring当前节点名称
taskStatusint任务状态
taskStatusNamestring任务状态
taskCreatedstring任务创建时间
taskFinishedstring任务完成时间
instIdint实例ID
instCreatedstring实例的创建时间
instFinishednull实例的完成时间
instStatusint实例的状态
instStatusNamestring实例的状态
instCreatorNamestring实例的发起人姓名
instCreatorint实例的发起人的ID
instCreatorDepartmentstring实例的发起人部门
percentint进度
appNamestring实例的名称
logostring实例的图标
formUrlstring审批网址(pc端)
formUrlViewstring查看网址(pc端)
formMobileUrlstring审批网址(移动端)
formMobileUrlViewstring查看网址(移动端)
instCreatorNumberstring发起者工号
instUserstring审批人
thirdpartyIdstring如果有这个字段,并且有值,表示是第三方任务
thirdpartyInstIdstring如果有这个字段,并且有值,表示是第三方实例id
thirdpartyTaskIdstring如果有这个字段,并且有值,表示是第三方任务id

请求示例

curl -X GET \ 'https://api.tongji.edu.cn/v1/infra/task_center/task_list' \ -H 'status: ' \ -H 'p: ' \ -H 'appId: ' \ -H 'departmentId: ' \ -H 'userId: ' \ -H 'pageSize: ' \ -H 'startTime: ' \ -H 'endTime: ' \ -H 'instId: ' \ -H 'keyword: ' \ -H 'keywordType: ' \ -H 'thirdpartyName: '

返回示例

{ "code": "A00000", "msg": "操作成功", "data": { "list": [ { "id": 215553, "appId": 2, "sessId": 599245, "uid": 68891, "flags": "{}", "status": 3, "type": 2, "appName": "", "logo": "", "tagName": "", "taskFinished": "2023-09-19 14:44:10", "taskCreated": "2023-09-19 10:00:00", "serverNowTime": "2023-09-20 09:53:29", "taskId": 3, "nodeId": 2, "nodeName": "校领导审核", "taskNodeName": "校领导审核", "taskStatus": 3, "delegateName": "", "taskName": "", "isSign": 0, "instId": 2, "instCreated": "2023-09-17 10:00:00", "instStatus": 2, "instStatusName": "已完成", "instCreatorName": "**", "instCreator": 68891, "instCreatorDepartment": "教育技术与计算中心", "percent": 100, "bpmnId": "", "definitionId": "", "thirdpartyId": 15, "thirdpartyNodeName": "校领导审核", "thirdpartyName": "测试申请", "thirdpartyLogo": "", "thirdpartyPercent": 100, "thirdpartyFormUrlView": "", "thirdpartyFormMobileUrlView": "", "thirdpartyConfigArr": { "log": "0", "from": "学工", "revoke": 0 }, "processPicUrl": "", "formUrl": "", "formMobileUrl": "", "thirdpartyInstId": 2, "thirdpartyTaskId": 3 }, { "id": 215551, "appId": 2, "sessId": 599245, "uid": 68891, "flags": "{}", "status": 3, "type": 2, "appName": "", "logo": "", "tagName": "", "taskFinished": "2023-09-18 10:00:00", "taskCreated": "2023-09-17 10:00:00", "serverNowTime": "2023-09-20 09:53:29", "taskId": 2, "nodeId": 1, "nodeName": "部门审核", "taskNodeName": "部门审核", "taskStatus": 3, "delegateName": "", "taskName": "", "isSign": 0, "instId": 2, "instCreated": "2023-09-17 10:00:00", "instStatus": 2, "instStatusName": "已完成", "instCreatorName": "**", "instCreator": 68891, "instCreatorDepartment": "教育技术与计算中心", "percent": 100, "bpmnId": "", "definitionId": "", "thirdpartyId": 15, "thirdpartyNodeName": "部门审核", "thirdpartyName": "测试申请", "thirdpartyLogo": "", "thirdpartyPercent": 100, "thirdpartyFormUrlView": "https://txd.tongji.edu.cn/v2/matter/launch", "thirdpartyFormMobileUrlView": "https://txd.tongji.edu.cn/v2/matter/launch", "thirdpartyConfigArr": { "log": "0", "from": "学工", "revoke": 0 }, "processPicUrl": "", "formUrl": "https://txd.tongji.edu.cn/v2/matter/launch", "formMobileUrl": "https://txd.tongji.edu.cn/v2/matter/launch", "thirdpartyInstId": 2, "thirdpartyTaskId": 2 } ], "total": 2, "perpage": 20, "page": 1 } }