feat():添加导出接口

master
zhang chengzhi 2024-08-09 21:57:44 +08:00
parent 13b2163d57
commit c2a7de9f67
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ public class OrderPayCustomerController {
@RequiresPermissions("pay:user:export") @RequiresPermissions("pay:user:export")
@PostMapping("/export") @PostMapping("/export")
public void export (HttpServletResponse response, @Validated @RequestBody CustomerListReq customerListReq) { public void export (HttpServletResponse response, @Validated @RequestBody CustomerListReq customerListReq) {
log.info("进行导出操作");
List<CustomerResp> customerRespList = orderPayCustomerService.selectList(customerListReq); List<CustomerResp> customerRespList = orderPayCustomerService.selectList(customerListReq);
ExcelUtil<CustomerResp> util = new ExcelUtil<CustomerResp>(CustomerResp.class); ExcelUtil<CustomerResp> util = new ExcelUtil<CustomerResp>(CustomerResp.class);
util.exportExcel(response, customerRespList, "角色数据"); util.exportExcel(response, customerRespList, "角色数据");