lishuangjiang@potevio.com 2 gadi atpakaļ
vecāks
revīzija
9844d95b49

+ 2 - 0
iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/IProductService.java

@@ -54,4 +54,6 @@ public interface IProductService {
     boolean deleteProductModel(String id);
 
     ProductVo findByProductKey(String productKey);
+
+    List<ProductVo> selectProductList();
 }

+ 4 - 0
iot-module/iot-manager/src/main/java/cc/iotkit/manager/service/impl/ProductServiceImpl.java

@@ -255,4 +255,8 @@ public class ProductServiceImpl implements IProductService {
 //        dataOwnerService.checkOwner(productData.findByProductKey(productKey));
     }
 
+    @Override
+    public List<ProductVo> selectProductList() {
+        return MapstructUtils.convert(productData.findAll(), ProductVo.class);
+    }
 }