From 60a44a81d2268197c5c9e74503077f955f0d3243 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 14 Jun 2024 21:17:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=8E=86=E5=8F=B2=E5=88=97=E8=A1=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/plan/controller/TestPlanController.java | 2 +- .../plan/dto/request/TestPlanExecuteHisPageRequest.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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)