|
@@ -184,7 +184,14 @@ public class IotDeviceController {
|
|
|
}
|
|
|
Map<Long, DeptDO> deptMap = deptService.getDeptMap(
|
|
|
convertList(pageResult.getList(), IotDeviceDO::getDeptId));
|
|
|
- return success(new PageResult<>(IotDeviceConvert.INSTANCE.convertList(pageResult.getList(), deptMap),
|
|
|
+ List<IotDeviceRespVO> iotDeviceRespVOS = IotDeviceConvert.INSTANCE.convertList(pageResult.getList(), deptMap);
|
|
|
+ iotDeviceRespVOS.forEach(e ->{
|
|
|
+ SupplierDO supplierDO = supplierService.get(e.getManufacturerId());
|
|
|
+ if (Objects.nonNull(supplierDO)) {
|
|
|
+ e.setManufacturer(supplierDO.getName());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return success(new PageResult<>(iotDeviceRespVOS,
|
|
|
pageResult.getTotal()));
|
|
|
}
|
|
|
|