mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2026-04-19 12:58:38 +00:00
fix:【iot】产品精简列表,未返回设备状态
This commit is contained in:
@@ -146,7 +146,7 @@ public class IotProductController {
|
|||||||
public CommonResult<List<IotProductRespVO>> getProductSimpleList() {
|
public CommonResult<List<IotProductRespVO>> getProductSimpleList() {
|
||||||
List<IotProductDO> list = productService.getProductList();
|
List<IotProductDO> list = productService.getProductList();
|
||||||
return success(convertList(list, product -> // 只返回 id、name 字段
|
return success(convertList(list, product -> // 只返回 id、name 字段
|
||||||
new IotProductRespVO().setId(product.getId()).setName(product.getName())
|
new IotProductRespVO().setId(product.getId()).setName(product.getName()).setStatus(product.getStatus())
|
||||||
.setDeviceType(product.getDeviceType()).setLocationType(product.getLocationType())));
|
.setDeviceType(product.getDeviceType()).setLocationType(product.getLocationType())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user