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; }