Browse Source

优化status表数据导出

develop
zhaoxianglong 10 months ago
parent
commit
e73fdf09cf
  1. 1
      zc-business/src/main/java/com/zc/business/controller/StatusController.java

1
zc-business/src/main/java/com/zc/business/controller/StatusController.java

@ -67,6 +67,7 @@ public class StatusController extends BaseController {
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, Status status) public void export(HttpServletResponse response, Status status)
{ {
status.setTypes(status.getType().split(","));
List<Status> listStatus = statusService.export(status); List<Status> listStatus = statusService.export(status);
ExcelUtil<Status> util = new ExcelUtil<>(Status.class); ExcelUtil<Status> util = new ExcelUtil<>(Status.class);
util.exportExcel(response, listStatus, "设备状态列表"); util.exportExcel(response, listStatus, "设备状态列表");

Loading…
Cancel
Save