From e15c73ef6313c335d31173f2b14be3843e786156 Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期二, 23 五月 2023 18:12:24 +0800 Subject: [PATCH] 456 --- 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