diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java index 24398f563e..9371470539 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java @@ -261,7 +261,7 @@ public class TestPlanController { @Operation(summary = "测试计划-执行历史-列表分页查询") @RequiresPermissions(PermissionConstants.TEST_PLAN_READ) @CheckOwner(resourceId = "#request.getTestPlanId()", resourceType = "test_plan") - public Pager> pageHis(@Validated TestPlanExecuteHisPageRequest request) { + public Pager> pageHis(@Validated @RequestBody TestPlanExecuteHisPageRequest request) { Page page = PageHelper.startPage(request.getCurrent(), request.getPageSize(), MapUtils.isEmpty(request.getSort()) ? "tpr.create_time desc" : request.getSortString()); return PageUtils.setPageInfo(page, testPlanService.listHis(request)); diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/TestPlanExecuteHisPageRequest.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/TestPlanExecuteHisPageRequest.java index 6fe7f789de..2af3b1407c 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/TestPlanExecuteHisPageRequest.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/TestPlanExecuteHisPageRequest.java @@ -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)