refactor(测试计划): 测试计划报告测试点名称优化
This commit is contained in:
parent
c68d4a0b30
commit
e2ccf0e630
|
@ -12,7 +12,7 @@ public class TestPlanReportDetailCollectionResponse {
|
|||
@Schema(description = "测试集ID")
|
||||
private String id;
|
||||
@Schema(description = "测试集名称")
|
||||
private String name;
|
||||
private String collectionName;
|
||||
@Schema(description = "测试集用例数量")
|
||||
private Long count;
|
||||
@Schema(description = "计划名称")
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
</select>
|
||||
|
||||
<select id="listCollection" resultType="io.metersphere.plan.dto.response.TestPlanReportDetailCollectionResponse">
|
||||
select tpc.id as id, tpc.name as name, tp.name as planName, tpc.pos as pos, count(tprac.id) as count
|
||||
select tpc.id as id, tpc.name as collectionName, tp.name as planName, tpc.pos as pos, count(tprac.id) as count
|
||||
from test_plan_report_api_case tprac
|
||||
right join test_plan_collection tpc on tprac.test_plan_collection_id = tpc.id and tpc.type = 'API'
|
||||
join test_plan tp on tpc.test_plan_id = tp.id
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</select>
|
||||
|
||||
<select id="listCollection" resultType="io.metersphere.plan.dto.response.TestPlanReportDetailCollectionResponse">
|
||||
select tpc.id as id, tpc.name as name, tp.name as planName, tpc.pos as pos, count(tpras.id) as count
|
||||
select tpc.id as id, tpc.name as collectionName, tp.name as planName, tpc.pos as pos, count(tpras.id) as count
|
||||
from test_plan_report_api_scenario tpras
|
||||
right join test_plan_collection tpc on tpras.test_plan_collection_id = tpc.id and tpc.type = 'SCENARIO'
|
||||
join test_plan tp on tpc.test_plan_id = tp.id
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
</select>
|
||||
|
||||
<select id="listCollection" resultType="io.metersphere.plan.dto.response.TestPlanReportDetailCollectionResponse">
|
||||
select tpc.id as id, tpc.name as name, tp.name as planName, tpc.pos as pos, count(tprfc.id) as count
|
||||
select tpc.id as id, tpc.name as collectionName, tp.name as planName, tpc.pos as pos, count(tprfc.id) as count
|
||||
from test_plan_report_function_case tprfc
|
||||
right join test_plan_collection tpc on tprfc.test_plan_collection_id = tpc.id and tpc.type = 'FUNCTIONAL'
|
||||
join test_plan tp on tpc.test_plan_id = tp.id
|
||||
|
|
Loading…
Reference in New Issue