refactor(测试计划): 优化计划列表返回值

This commit is contained in:
WangXu10 2024-05-20 10:54:35 +08:00 committed by 刘瑞斌
parent 31c506feac
commit 8a13dd6f35
2 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,8 @@ public class TestPlanResponse extends TestPlanStatisticsResponse {
private String schedule; private String schedule;
@Schema(description = "创建人") @Schema(description = "创建人")
private String createUser; private String createUser;
@Schema(description = "创建人名称")
private String createUserName;
@Schema(description = "创建时间") @Schema(description = "创建时间")
private String createTime; private String createTime;
@Schema(description = "模块") @Schema(description = "模块")

View File

@ -34,10 +34,11 @@
</select> </select>
<select id="selectByConditions" <select id="selectByConditions"
resultMap="testPlanBaseInfo"> resultType="io.metersphere.plan.dto.response.TestPlanResponse">
SELECT SELECT
t.id,t.num,t.name,t.status,t.group_id, t.id,t.num,t.name,t.status,t.group_id,
createUser.name AS createUser, t.create_user AS createUser,
createUser.name AS createUserName,
t.create_time, t.create_time,
t.module_id, t.module_id,
t.type, t.type,