diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java index e147c35..86c0dc6 100644 --- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java +++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java @@ -103,10 +103,10 @@ public class DeviceUserController { public void exportDeviceUserExcel(@Valid DeviceUserPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); - List list = deviceUserService.getDeviceUserPage(pageReqVO).getList(); + List list = deviceUserService.getDeviceUserPage(pageReqVO).getList(); // 导出 Excel ExcelUtils.write(response, "设备用户关系.xls", "数据", DeviceUserRespVO.class, - BeanUtils.toBean(list, DeviceUserRespVO.class)); + list); } @PostMapping("/findDeviceDeptTree")