fix(测试计划): 测试计划列表返回值问题

--bug=1040707 --user=王旭 【测试计划】计划创建成功后无创建人,描述填写了未反显,创建时间时间时间戳转换错误 https://www.tapd.cn/55049933/s/1517693
This commit is contained in:
WangXu10 2024-05-21 16:46:25 +08:00 committed by Craftsman
parent 7cf6ca92ed
commit 75fdb4edf3
2 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@ public class TestPlanResponse extends TestPlanStatisticsResponse {
@Schema(description = "创建人名称") @Schema(description = "创建人名称")
private String createUserName; private String createUserName;
@Schema(description = "创建时间") @Schema(description = "创建时间")
private String createTime; private Long createTime;
@Schema(description = "模块") @Schema(description = "模块")
private String moduleName; private String moduleName;
@Schema(description = "模块Id") @Schema(description = "模块Id")
@ -38,4 +38,7 @@ public class TestPlanResponse extends TestPlanStatisticsResponse {
@Schema(description = "测试计划组Id") @Schema(description = "测试计划组Id")
private String groupId; private String groupId;
@Schema(description = "描述")
private String description;
} }

View File

@ -39,9 +39,10 @@
t.id,t.num,t.name,t.status,t.group_id, t.id,t.num,t.name,t.status,t.group_id,
t.create_user AS createUser, t.create_user AS createUser,
createUser.name AS createUserName, createUser.name AS createUserName,
t.create_time, t.create_time as createTime,
t.module_id, t.module_id as moduleId,
t.type, t.type,
t.description,
t.tags t.tags
FROM test_plan t FROM test_plan t
INNER JOIN user createUser ON t.create_user = createUser.id INNER JOIN user createUser ON t.create_user = createUser.id