Commit ac15dc6d by wnb0128

车家智能数据服务 远程设备条件处理注释添加--think.wang

1 parent bc55c653
......@@ -177,6 +177,7 @@ public class SmartProductTypeServiceImpl extends BaseService implements SmartPro
if(CollectionUtils.isEmpty(productList)){
return arrayList;
}
//获取设备类型列表
List<SmartProductType> list;
if(status == 1){
list = productTypeMapper.getAllConditionList();
......@@ -194,12 +195,13 @@ public class SmartProductTypeServiceImpl extends BaseService implements SmartPro
list.stream().forEach(index ->{
typeMap.put(index.getId(), index);
});
//远程设备数据封装
for (int i = 0; i < len; i++) {
JSONObject object = array.getJSONObject(i);
String productId = object.getString("product_id");
SmartProduct product = this.compareProductId(productList, productId);
if(product == null){
break;
continue;
}
SmartProductType productType = typeMap.get(product.getTypeId());
if(productType != null){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!