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