获取待办、已办列表
最近更新时间: 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' \
-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
}
}