From 462c16ca4ec52bdea6cbb35514e8fd78d6b5f38c Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期三, 17 五月 2023 15:20:00 +0800 Subject: [PATCH] 合并不行 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEventController.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEventController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEventController.java index 30227a5..c74d0a5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEventController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfEventController.java @@ -65,13 +65,11 @@ */ // @PreAuthorize("@ss.hasPermi('system:property:export')") @Log(title = "瀹跺涵澶т簨浠惰褰�", businessType = BusinessType.EXPORT) - @PostMapping("/export/{ids}") - public void export(HttpServletResponse response, ZfEvent zfEvent,@PathVariable Long[] ids) { + @PostMapping("/export") + public void export(HttpServletResponse response, ZfEvent zfEvent) { List<ZfEvent> list = new ArrayList<>(); - if(ids.length!=0) - list = zfEventService.selectByIds(ids); - else - list = zfEventService.selectByCondition(zfEvent); + + list = zfEventService.selectByCondition(zfEvent); log.info("瀵煎嚭璁板綍涓�:{}", list); ExcelUtil<ZfEvent> util = new ExcelUtil<>(ZfEvent.class); util.exportExcel(response, list, "瀹跺涵澶т簨浠惰褰曟暟鎹�"); -- Gitblit v1.9.1