Commit 8f2ac46f1701678a3e01aea18c5694b102deb9ed
1 parent
cf48d44c
用户设备提交
Showing
1 changed file
with
2 additions
and
2 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java
| ... | ... | @@ -103,10 +103,10 @@ public class DeviceUserController { |
| 103 | 103 | public void exportDeviceUserExcel(@Valid DeviceUserPageReqVO pageReqVO, |
| 104 | 104 | HttpServletResponse response) throws IOException { |
| 105 | 105 | pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| 106 | - List<DeviceUserDO> list = deviceUserService.getDeviceUserPage(pageReqVO).getList(); | |
| 106 | + List<DeviceUserRespVO> list = deviceUserService.getDeviceUserPage(pageReqVO).getList(); | |
| 107 | 107 | // 导出 Excel |
| 108 | 108 | ExcelUtils.write(response, "设备用户关系.xls", "数据", DeviceUserRespVO.class, |
| 109 | - BeanUtils.toBean(list, DeviceUserRespVO.class)); | |
| 109 | + list); | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | @PostMapping("/findDeviceDeptTree") | ... | ... |