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;
@Schema(description = "创建人")
private String createUser;
@Schema(description = "创建人名称")
private String createUserName;
@Schema(description = "创建时间")
private String createTime;
@Schema(description = "模块")

View File

@ -34,10 +34,11 @@
</select>
<select id="selectByConditions"
resultMap="testPlanBaseInfo">
resultType="io.metersphere.plan.dto.response.TestPlanResponse">
SELECT
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.module_id,
t.type,