fix(接口测试): 批量执行独立报告的任务重跑,查看任务执行结果重复显示了子结果

--bug=1049602 --user=陈建星 【任务中心】即时任务列表-重跑后查看执行结果-成功和失败的场景均展示重跑记录 https://www.tapd.cn/55049933/s/1618370
This commit is contained in:
AgAngle 2024-11-27 11:06:39 +08:00 committed by 刘瑞斌
parent 5f1f058f1e
commit 2454efb574
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,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.id and eti.deleted = 0
join ${tableName} r on arrt.report_id = r.id and r.deleted = 0
where eti.task_id = #{request.taskId}
<include refid="queryBatchWhereCondition"/>