feat(测试计划): 计划组的执行历史列表功能

--story=1015333 --user=宋昌昌 【测试计划】完成剩余功能 https://www.tapd.cn/55049933/s/1540855
This commit is contained in:
song-cc-rock 2024-07-01 17:25:13 +08:00 committed by Craftsman
parent f87bfd1c1a
commit 239c662190
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,6 @@ import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = false)
public class TestPlanExecuteHisPageRequest extends BasePageRequest {
@Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)
@Schema(description = "测试计划/计划组ID", requiredMode = Schema.RequiredMode.REQUIRED)
private String testPlanId;
}

View File

@ -462,10 +462,11 @@
<select id="listHis" resultType="io.metersphere.plan.dto.TestPlanExecuteHisDTO">
select tpr.id, from_unixtime(tpr.create_time / 1000, '%Y%m%d%H%i%s') as num, tpr.trigger_mode triggerMode, tpr.exec_status execStatus, tpr.result_status execResult,
tpr.create_user operationUser, tpr.start_time startTime, tpr.end_time endTime, tpr.deleted deleted from test_plan_report tpr
tpr.create_user operationUser, tpr.start_time startTime, tpr.end_time endTime, tpr.deleted as deleted from test_plan_report tpr
where tpr.test_plan_id = #{request.testPlanId}
<include refid="filter"/>
</select>
<select id="selectGroupIdByKeyword" resultType="java.lang.String">
SELECT t.group_id
FROM test_plan t