Commit 0d288077d3ae6c0200b0f4de8e8cd093eea446fc

Authored by puhui999
1 parent 4c051620

feat:【IoT 物联网】获取设备的精简信息列表时多返回一个属性:state

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/device/IotDeviceController.java
@@ -132,7 +132,7 @@ public class IotDeviceController { @@ -132,7 +132,7 @@ public class IotDeviceController {
132 List<IotDeviceDO> list = deviceService.getDeviceListByCondition(deviceType, productId); 132 List<IotDeviceDO> list = deviceService.getDeviceListByCondition(deviceType, productId);
133 return success(convertList(list, device -> // 只返回 id、name、productId 字段 133 return success(convertList(list, device -> // 只返回 id、name、productId 字段
134 new IotDeviceRespVO().setId(device.getId()).setDeviceName(device.getDeviceName()) 134 new IotDeviceRespVO().setId(device.getId()).setDeviceName(device.getDeviceName())
135 - .setProductId(device.getProductId()))); 135 + .setProductId(device.getProductId()).setState(device.getState())));
136 } 136 }
137 137
138 @PostMapping("/import") 138 @PostMapping("/import")