🎉 开放平台文档站换新颜。 欢迎填问卷给我们建议,意见,反馈,夸夸 →
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任务名称(模糊查询)

返回参数

参数名类型备注码表
taskId
int任务ID
nodeName
string当前节点名称
taskStatus
int任务状态
taskStatusName
string任务状态
taskCreated
string任务创建时间
taskFinished
string任务完成时间
instId
int实例ID
instCreated
string实例的创建时间
instFinished
null实例的完成时间
instStatus
int实例的状态
instStatusName
string实例的状态
instCreatorName
string实例的发起人姓名
instCreator
int实例的发起人的ID
instCreatorDepartment
string实例的发起人部门
percent
int进度
appName
string实例的名称
logo
string实例的图标
formUrl
string审批网址(pc端)
formUrlView
string查看网址(pc端)
formMobileUrl
string审批网址(移动端)
formMobileUrlView
string查看网址(移动端)
instCreatorNumber
string发起者工号
instUser
string审批人
thirdpartyId
string如果有这个字段,并且有值,表示是第三方任务
thirdpartyInstId
string如果有这个字段,并且有值,表示是第三方实例id
thirdpartyTaskId
string如果有这个字段,并且有值,表示是第三方任务id

请求示例

curl -X GET \ 'https://api.tongji.edu.cn/v1/infra/task_center/task_list?status=&p=&appId=&departmentId=&userId=&pageSize=&startTime=&endTime=&instId=&keyword=&keywordType=&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 } }