fix(任务中心): 修复批量执行独立报告任务列表查询结果错误

--bug=1047827 --user=王旭 【项目任务中心】接口测试-场景批量执行-生成独立 报告-用例执行任务列表-操作-查看报告-列表无数据 https://www.tapd.cn/55049933/s/1597928
This commit is contained in:
WangXu10 2024-10-25 10:48:28 +08:00 committed by Craftsman
parent c7097715dc
commit 81bb2d0c39
1 changed files with 1 additions and 1 deletions

View File

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