refactor(任务中心): 后台任务返回资源num用于跳转

This commit is contained in:
WangXu10 2024-10-24 14:58:18 +08:00 committed by Craftsman
parent a1a5abb021
commit 7499e0d519
2 changed files with 13 additions and 5 deletions

View File

@ -63,4 +63,7 @@ public class TaskHubScheduleDTO implements Serializable {
@Schema(description = "操作时间")
private Long createTime;
@Schema(description = "资源num")
private String resourceNum;
}

View File

@ -266,7 +266,8 @@
schedule.create_time,
QRTZ_TRIGGERS.NEXT_FIRE_TIME AS next_time,
project.organization_id,
project.name as projectName
project.name as projectName,
ads.num as resourceNum
FROM
schedule
inner join api_definition_swagger ads on schedule.resource_id = ads.id
@ -287,7 +288,8 @@
schedule.create_time,
QRTZ_TRIGGERS.NEXT_FIRE_TIME AS next_time,
project.organization_id,
project.name as projectName
project.name as projectName,
api_scenario.num as resourceNum
FROM
schedule
inner join api_scenario on schedule.resource_id = api_scenario.id
@ -308,7 +310,8 @@
schedule.create_time,
QRTZ_TRIGGERS.NEXT_FIRE_TIME AS next_time,
project.organization_id,
project.name as projectName
project.name as projectName,
test_plan.num as resourceNum
FROM
schedule
inner join test_plan on schedule.resource_id = test_plan.id
@ -329,7 +332,8 @@
schedule.create_time,
QRTZ_TRIGGERS.NEXT_FIRE_TIME AS next_time,
project.organization_id,
project.name as projectName
project.name as projectName,
project.num as resourceNum
FROM
schedule
left join project on schedule.project_id = project.id
@ -351,7 +355,8 @@
schedule.create_time,
QRTZ_TRIGGERS.NEXT_FIRE_TIME AS nextTime,
project.organization_id,
project.name as projectName
project.name as projectName,
project.num as resourceNum
FROM
schedule
left join project on schedule.project_id = project.id