fix:【iot】产品精简列表,未返回设备状态

This commit is contained in:
YunaiV 2025-11-24 19:51:20 +08:00
parent 94780ebcf3
commit 490e91d0ca

View File

@ -146,7 +146,7 @@ public class IotProductController {
public CommonResult<List<IotProductRespVO>> getProductSimpleList() {
List<IotProductDO> list = productService.getProductList();
return success(convertList(list, product -> // 只返回 idname 字段
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())));
}