mirror of
https://gitee.com/yudaocode/yudao-boot-mini.git
synced 2025-12-25 22:58:58 +08:00
fix:【iot】产品精简列表,未返回设备状态
This commit is contained in:
parent
94780ebcf3
commit
490e91d0ca
@ -146,7 +146,7 @@ public class IotProductController {
|
||||
public CommonResult<List<IotProductRespVO>> getProductSimpleList() {
|
||||
List<IotProductDO> list = productService.getProductList();
|
||||
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())));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user