fix(测试计划): 执行历史列表分页查询
This commit is contained in:
parent
3b9c620f3c
commit
60a44a81d2
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue