feat(测试计划): 返回项目名称

This commit is contained in:
WangXu10 2024-05-16 16:54:53 +08:00 committed by 刘瑞斌
parent c170455ed5
commit ccd055e621
2 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,9 @@ public class TestPlanCasePageResponse implements Serializable {
@Schema(description = "项目ID")
private String projectId;
@Schema(description = "所属项目")
private String projectName;
@Schema(description = "模板ID")
private String templateId;

View File

@ -101,9 +101,12 @@
test_plan_functional_case.last_exec_time as lastExecTime,
test_plan_functional_case.last_exec_result as lastExecResult,
test_plan_functional_case.test_plan_id as testPlanId,
test_plan_functional_case.id
test_plan_functional_case.id,
project.name as projectName,
project.id as projectId
FROM
functional_case
left join project on functional_case.project_id = project.id
LEFT JOIN project_version ON functional_case.version_id = project_version.id
left join test_plan_functional_case on functional_case.id = test_plan_functional_case.functional_case_id
where functional_case.deleted = #{deleted}