fix(测试计划): 执行历史列表分页查询

This commit is contained in:
song-cc-rock 2024-06-14 21:17:26 +08:00 committed by Craftsman
parent 3b9c620f3c
commit 60a44a81d2
2 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public class TestPlanController {
@Operation(summary = "测试计划-执行历史-列表分页查询")
@RequiresPermissions(PermissionConstants.TEST_PLAN_READ)
@CheckOwner(resourceId = "#request.getTestPlanId()", resourceType = "test_plan")
public Pager<List<TestPlanExecuteHisDTO>> pageHis(@Validated TestPlanExecuteHisPageRequest request) {
public Pager<List<TestPlanExecuteHisDTO>> pageHis(@Validated @RequestBody TestPlanExecuteHisPageRequest request) {
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize(),
MapUtils.isEmpty(request.getSort()) ? "tpr.create_time desc" : request.getSortString());
return PageUtils.setPageInfo(page, testPlanService.listHis(request));

View File

@ -3,8 +3,10 @@ package io.metersphere.plan.dto.request;
import io.metersphere.system.dto.sdk.BasePageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class TestPlanExecuteHisPageRequest extends BasePageRequest {
@Schema(description = "测试计划ID", requiredMode = Schema.RequiredMode.REQUIRED)