接口名称:
查询定时任务计划
接口描述:
查询定时任务计划
请求路径:
/schedule/info/get
请求方式:
GET
请求参数:
- Header
参数名 | 参数值 | 必填 | 描述 |
---|---|---|---|
Content-Type | application/x-www-form-urlencoded | Y | application/x-www-form-urlencoded |
- Param
参数名 | 类型 | 必选 | 描述 |
---|---|---|---|
pageNo | Integer | Y | 页数 |
rowCount | Integer | Y | 一页行数 |
cronId | Integer | N | 计划id |
cronName | String | N | 计划名字(模糊查询) |
isExcute | Integer | N | 是否执行 1:执行 0:不执行 |
- Body
请求示例:
&pageNo=1&rowCount=10&cronId=1
返回参数:
参数名 | 类型 | 必选 | 描述 |
---|---|---|---|
data | List |
N | 响应内容 |
└─element | ScheduledVo | Y | |
└─└─cronId | Integer | Y | 定时任务Id |
└─└─cronName | String | Y | 定时任务名称 |
└─└─cron | String | Y | cron表达式 |
└─└─isExecute | Integer | N | 是否执行0:不执行1:执行 |
└─└─jobName | String | N | 任务名 |
└─└─jobGroup | String | N | 组名,为模块名 |
└─└─invokeTarget | String | N | 执行类 |
└─└─kind | Integer | N | 类型 |
count | long | N | 总数 |
code | int | N | 响应码 |
message | String | N | 响应信息 |
返回示例:
{
"code": 0,
"message": "请求成功",
"data": [
{
"cronId": 1,
"cronName": "微信订单状态修改任务",
"cron": "0 30 2 * * ?",
"isExecute": 1,
"jobName": "",
"jobGroup": "",
"invokeTarget": "",
"kind": 0
},
{
"cronId": 2,
"cronName": "删除退款图片",
"cron": "0 0 1 1 1/3 ? ",
"isExecute": 1,
"jobName": "",
"jobGroup": "",
"invokeTarget": "",
"kind": 0
},
{
"cronId": 3,
"cronName": "预览文件删除任务",
"cron": "0 30 1 * * ?",
"isExecute": 1,
"jobName": "",
"jobGroup": "",
"invokeTarget": "",
"kind": 0
},
{
"cronId": 5,
"cronName": "定时发送微信推送消息任务",
"cron": "0 0/1 * * * ?",
"isExecute": 1,
"jobName": "maintainMsgSendTask",
"jobGroup": "maintainMsgSendTask",
"invokeTarget": "net.unifound.manager.job.task.MaintainMsgSendTask",
"kind": 1
},
{
"cronId": 6,
"cronName": "未打印任务退款申请自动退款",
"cron": "0 0/1 * * * ?",
"isExecute": 1,
"jobName": "printRefundTask",
"jobGroup": "printer-manager",
"invokeTarget": "net.unifound.manager.job.task.PrintRefundTask",
"kind": 1
}
],
"count": 5
}
文档更新时间: 2025-05-27 17:07 作者:吴温立