fix(工作台): 修复工作台我的待办接口用例分页问题

https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018306
--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-24 21:08:15 +08:00 committed by xiaomeinvG
parent 53c18d2fdc
commit 82249712ed
1 changed files with 1 additions and 1 deletions

View File

@ -69,9 +69,9 @@ public class ApiTestCaseController {
@PostMapping("/list/{goPage}/{pageSize}") @PostMapping("/list/{goPage}/{pageSize}")
public Pager<List<ApiTestCaseDTO>> listSimple(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ApiTestCaseRequest request) { public Pager<List<ApiTestCaseDTO>> listSimple(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody ApiTestCaseRequest request) {
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
request.setSelectEnvironment(true); request.setSelectEnvironment(true);
apiTestCaseService.initRequestBySearch(request); apiTestCaseService.initRequestBySearch(request);
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
return PageUtils.setPageInfo(page, apiTestCaseService.listSimple(request)); return PageUtils.setPageInfo(page, apiTestCaseService.listSimple(request));
} }