whywhyo
2023-05-23 2e895c760a6433bf86fc20ac60b003f16e34ddb8
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, "家庭大事件记录数据");