mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
fix(任务中心): 修复集合报告任务查看报告列表为空问题
--bug=1047897 --user=王旭 【任务中心】-批量执行接口用例,报告方式选集合报告,执行完成后,任务中心的查看结果为空 https://www.tapd.cn/55049933/s/1596603
This commit is contained in:
parent
be4870155e
commit
2cdc7f802a
@ -78,7 +78,7 @@ public class ApiScenarioScheduleJob extends BaseScheduleJob {
|
||||
execTaskItem.setResourceType(ApiExecuteResourceType.API_SCENARIO.name());
|
||||
execTaskItem.setResourceId(apiScenarioDetail.getId());
|
||||
execTaskItem.setResourceName(apiScenarioDetail.getName());
|
||||
baseTaskHubService.insertExecTaskAndDetail(execTask,execTaskItem);
|
||||
baseTaskHubService.insertExecTaskAndDetail(execTask, execTaskItem);
|
||||
|
||||
TaskRequestDTO taskRequest = apiScenarioRunService.getTaskRequest(IDGenerator.nextStr(), apiScenarioDetail.getId(), apiScenarioDetail.getProjectId(), ApiExecuteRunMode.SCHEDULE.name());
|
||||
TaskInfo taskInfo = taskRequest.getTaskInfo();
|
||||
@ -114,7 +114,6 @@ public class ApiScenarioScheduleJob extends BaseScheduleJob {
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static JobKey getJobKey(String scenarioId) {
|
||||
return new JobKey(scenarioId, ApiScenarioScheduleJob.class.getName());
|
||||
}
|
||||
|
@ -261,7 +261,7 @@
|
||||
<select id="list" resultType="io.metersphere.system.dto.BatchExecTaskReportDTO">
|
||||
select r.id, r.name, if(#{tableName} = 'api_report', 'API', 'SCENARIO') as source, false as integrated, r.status,
|
||||
r.exec_status as execStatus, r.trigger_mode triggerMode, r.create_user as createUser, r.start_time as createTime
|
||||
from exec_task_item eti join api_report_relate_task arrt on arrt.task_resource_id = eti.id
|
||||
from exec_task_item eti join api_report_relate_task arrt on arrt.task_resource_id = eti.task_id
|
||||
join ${tableName} r on arrt.report_id = r.id and r.deleted = 0
|
||||
where eti.task_id = #{request.taskId}
|
||||
<include refid="queryBatchWhereCondition"/>
|
||||
|
Loading…
Reference in New Issue
Block a user