fix(测试计划): 用例明细不支持详情跳转

--bug=1042969 --user=宋昌昌 【测试计划】独立报告-接口用例明细-点击未执行用例ID-提示当前用户没有操作此资源的权限 https://www.tapd.cn/55049933/s/1535526
This commit is contained in:
song-cc-rock 2024-06-24 18:08:46 +08:00 committed by Craftsman
parent e1e3661294
commit 255a15a825
4 changed files with 8 additions and 5 deletions

View File

@ -28,4 +28,6 @@ public class ReportDetailCasePageDTO {
private Long bugCount;
@Schema(description = "报告详情ID")
private String reportId;
@Schema(description = "项目ID")
private String projectId;
}

View File

@ -28,8 +28,8 @@
<!-- ID、用例名称、所属模块、用例等级、执行人、执行结果、缺陷数、 接口报告ID -->
select tprac.api_case_id as id, tprac.api_case_num as num, tprac.api_case_name as name,
tprac.api_case_module as moduleName, tprac.api_case_priority as priority, tprac.api_case_execute_report_id reportId,
ifnull(tprac.api_case_execute_result, 'PENDING') as executeResult, tprac.api_case_execute_user as executeUser, 0 as bugCount
from test_plan_report_api_case tprac
ifnull(tprac.api_case_execute_result, 'PENDING') as executeResult, tprac.api_case_execute_user as executeUser, 0 as bugCount, atc.project_id projectId
from test_plan_report_api_case tprac left join api_test_case atc on tprac.api_case_id = atc.id
where tprac.test_plan_report_id = #{request.reportId}
<include refid="filter"/>
</select>

View File

@ -27,8 +27,8 @@
<!-- ID、用例名称、所属模块、用例等级、执行人、执行结果、缺陷数、报告ID -->
select distinct tpras.api_scenario_id as id, tpras.api_scenario_num as num, tpras.api_scenario_name as name,
tpras.api_scenario_module as moduleName, tpras.api_scenario_priority as priority, tpras.api_scenario_execute_report_id reportId,
ifnull(tpras.api_scenario_execute_result, 'PENDING') as executeResult, tpras.api_scenario_execute_user as executeUser, 0 as bugCount
from test_plan_report_api_scenario tpras
ifnull(tpras.api_scenario_execute_result, 'PENDING') as executeResult, tpras.api_scenario_execute_user as executeUser, 0 as bugCount, aso.project_id projectId
from test_plan_report_api_scenario tpras left join api_scenario aso on tpras.api_scenario_id = aso.id
where tpras.test_plan_report_id = #{request.reportId}
<include refid="filter"/>
</select>

View File

@ -48,8 +48,9 @@
select tprfc.function_case_id as id, tprfc.function_case_num as num, tprfc.function_case_name as name,
tprfc.function_case_module as moduleName, tprfc.function_case_priority as priority,
ifnull(tprfc.function_case_execute_result, 'PENDING') as executeResult, tprfc.function_case_execute_user as executeUser,
ifnull(tprfc.function_case_bug_count, 0) as bugCount, tprfc.function_case_execute_report_id reportId
ifnull(tprfc.function_case_bug_count, 0) as bugCount, tprfc.function_case_execute_report_id reportId, fc.project_id projectId
from test_plan_report_function_case tprfc
left join functional_case fc on fc.id = tprfc.function_case_id
where tprfc.test_plan_report_id = #{request.reportId}
<include refid="filter"/>
</select>