| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | | * @since 2025/04/02 17:49 |
| | |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:notices:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Notices> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(Notices.class).exportData(noticesService.findPage(pageWrap).getRecords(), "系统消息信息表", response); |
| | | ExcelExporter.build(Notices.class).export(noticesService.findPage(pageWrap).getRecords(), "系统消息信息表", response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |