From 6eda06a4aa05de19ceaa37821810e3b2e2ea9897 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期二, 29 十一月 2022 14:03:14 +0800 Subject: [PATCH] fix: 导出不要传参 --- ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java index 855ea64..9867d6a 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java @@ -92,25 +92,21 @@ @LogSave(operationType = "闃熶紞寤鸿绠$悊", contain = "瀵煎嚭") @ApiImplicitParams( { - @ApiImplicitParam(name = "size", required = true, value = "椤甸潰鏁伴噺"), - @ApiImplicitParam(name = "current", required = true, value = "椤电爜"), @ApiImplicitParam(name = "departName", value = "閮ㄩ棬鍚嶇О"), @ApiImplicitParam(name = "status", value = "鐘舵��")} ) @SneakyThrows - public void export(@RequestParam() Integer size, - @RequestParam() Integer current, - @RequestParam(name = "departName", required = false) String departName, - @RequestParam(name = "status", required = false) Integer status, - HttpServletResponse response) { + public void export( + @RequestParam(name = "departName", required = false) String departName, + @RequestParam(name = "status", required = false) Integer status, + HttpServletResponse response) { Integer isDelete = 0; String sheetName = "鏁版嵁"; EasyExcelUtils.export(response, sheetName, TeamConstruction.class, iTeamConstructionService - .page(new Page<TeamConstruction>().setSize(size).setCurrent(current), new LambdaQueryWrapper<TeamConstruction>() + .list(new LambdaQueryWrapper<TeamConstruction>() .like(StringUtils.isNotBlank(departName), TeamConstruction::getName, departName) .eq(status != null, TeamConstruction::getStatus, status) - .eq(TeamConstruction::getIsDelete, isDelete)) - .getRecords()); + .eq(TeamConstruction::getIsDelete, isDelete))); } -- Gitblit v1.8.0