gongchunyi
9 天以前 307f6266c8fad7e2e1c9c9a9b3b8b0925c64710f
src/main/java/com/ruoyi/waterrecord/controller/WaterRecordController.java
@@ -81,8 +81,11 @@
    @PostMapping("/export")
    @ApiOperation("导出用水管理")
    public void export(HttpServletResponse response) {
        Page page = new Page(-1,-1);
        WaterRecord waterRecord = new WaterRecord();
        IPage<WaterRecord> listPage = waterRecordService.listPage(page, waterRecord);
        ExcelUtil<WaterRecord> util = new ExcelUtil<WaterRecord>(WaterRecord.class);
        util.exportExcel(response, null , "用水管理");
        util.exportExcel(response, listPage.getRecords() , "用水管理");
    }
}