From 8fc1ceea92576c41401d3e29711a3129ab7dc2da Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 16 Nov 2021 16:08:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):?= =?UTF-8?q?=20=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/task/controller/TaskController.java | 2 -- .../main/java/io/metersphere/task/dto/TaskCenterRequest.java | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/task/controller/TaskController.java b/backend/src/main/java/io/metersphere/task/controller/TaskController.java index fca0595e0e..d1e5089e10 100644 --- a/backend/src/main/java/io/metersphere/task/controller/TaskController.java +++ b/backend/src/main/java/io/metersphere/task/controller/TaskController.java @@ -7,7 +7,6 @@ import io.metersphere.commons.utils.Pager; import io.metersphere.task.dto.TaskCenterDTO; import io.metersphere.task.dto.TaskCenterRequest; import io.metersphere.task.service.TaskService; -import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -25,7 +24,6 @@ public class TaskController { request.setPageSize(pageSize); Page page = PageHelper.startPage(goPage, pageSize, true); return PageUtils.setPageInfo(page, taskService.getTasks(request)); - // return taskService.getTasks(request); } @GetMapping("/case/{id}") diff --git a/backend/src/main/java/io/metersphere/task/dto/TaskCenterRequest.java b/backend/src/main/java/io/metersphere/task/dto/TaskCenterRequest.java index 29eafcecc4..2fedf6ced3 100644 --- a/backend/src/main/java/io/metersphere/task/dto/TaskCenterRequest.java +++ b/backend/src/main/java/io/metersphere/task/dto/TaskCenterRequest.java @@ -20,5 +20,6 @@ public class TaskCenterRequest { private String executor; private int goPage; + private int pageSize; }