diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanResponse.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanResponse.java index f2b3bb9673..051fe3af33 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanResponse.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanResponse.java @@ -26,7 +26,7 @@ public class TestPlanResponse extends TestPlanStatisticsResponse { @Schema(description = "创建人名称") private String createUserName; @Schema(description = "创建时间") - private String createTime; + private Long createTime; @Schema(description = "模块") private String moduleName; @Schema(description = "模块Id") @@ -38,4 +38,7 @@ public class TestPlanResponse extends TestPlanStatisticsResponse { @Schema(description = "测试计划组Id") private String groupId; + + @Schema(description = "描述") + private String description; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanMapper.xml index c4bf74f81f..2022fb5307 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanMapper.xml @@ -39,9 +39,10 @@ t.id,t.num,t.name,t.status,t.group_id, t.create_user AS createUser, createUser.name AS createUserName, - t.create_time, - t.module_id, + t.create_time as createTime, + t.module_id as moduleId, t.type, + t.description, t.tags FROM test_plan t INNER JOIN user createUser ON t.create_user = createUser.id