Commit 490e91d0ca6ec5d09ccb7189146a86bfeebae635
1 parent
94780ebc
fix:【iot】产品精简列表,未返回设备状态
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/controller/admin/product/IotProductController.java
| ... | ... | @@ -146,7 +146,7 @@ public class IotProductController { |
| 146 | 146 | public CommonResult<List<IotProductRespVO>> getProductSimpleList() { |
| 147 | 147 | List<IotProductDO> list = productService.getProductList(); |
| 148 | 148 | return success(convertList(list, product -> // 只返回 id、name 字段 |
| 149 | - new IotProductRespVO().setId(product.getId()).setName(product.getName()) | |
| 149 | + new IotProductRespVO().setId(product.getId()).setName(product.getName()).setStatus(product.getStatus()) | |
| 150 | 150 | .setDeviceType(product.getDeviceType()).setLocationType(product.getLocationType()))); |
| 151 | 151 | } |
| 152 | 152 | ... | ... |