Commit 9ab8ebb9 authored by tangwei's avatar tangwei

修改拓扑物联信息

parent 40f4868a
...@@ -247,28 +247,31 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -247,28 +247,31 @@ public class FireFightingSystemController extends AbstractBaseController {
List<EquProperty> properALlList = new ArrayList<>(); List<EquProperty> properALlList = new ArrayList<>();
List<String> list = equipmentIndexService.getGruopName(equipmentId); List<String> list = equipmentIndexService.getGruopName(equipmentId);
list.forEach(x -> { list.forEach(x -> {
QueryWrapper<EquipmentIndex> wrapper = new QueryWrapper<>(); if(!"".equals(x)) {
wrapper.eq("equipment_id", equipmentId); QueryWrapper<EquipmentIndex> wrapper = new QueryWrapper<>();
wrapper.eq("group_name", x); wrapper.eq("equipment_id", equipmentId);
wrapper.orderByAsc("sort_num"); wrapper.eq("group_name", x);
List<EquProperty> properList = new ArrayList<>(); wrapper.orderByAsc("sort_num");
equipmentIndexService.list(wrapper).forEach(y -> { List<EquProperty> properList = new ArrayList<>();
EquProperty equProperty = new EquProperty(); equipmentIndexService.list(wrapper).forEach(y -> {
equProperty.setEquipmentIndexId(y.getId()); EquProperty equProperty = new EquProperty();
equProperty.setIsIot(y.getIsIot()); equProperty.setEquipmentIndexId(y.getId());
equProperty.setPerfQuotaName(y.getPerfQuotaName()); equProperty.setIsIot(y.getIsIot());
equProperty.setEquipmentIndexName(y.getPerfQuotaName()); equProperty.setPerfQuotaName(y.getPerfQuotaName());
equProperty.setGroupName(y.getGroupName()); equProperty.setEquipmentIndexName(y.getPerfQuotaName());
equProperty.setValue(y.getPerfValue()); equProperty.setGroupName(y.getGroupName());
equProperty.setUnitName(y.getUnitName()); equProperty.setValue(y.getPerfValue());
equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId()); equProperty.setUnitName(y.getUnitName());
properList.add(equProperty); equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId());
}); properList.add(equProperty);
properALlList.addAll(properList); });
map.put(x, properList); properALlList.addAll(properList);
map.put(x, properList);
}
}); });
QueryWrapper<EquipmentIndex> wrappernull = new QueryWrapper<>(); QueryWrapper<EquipmentIndex> wrappernull = new QueryWrapper<>();
wrappernull.isNull("group_name").or().eq("group_name", " "); wrappernull.isNull("group_name").or().eq("group_name", "");
wrappernull.eq("equipment_id", equipmentId); wrappernull.eq("equipment_id", equipmentId);
wrappernull.orderByAsc("sort_num"); wrappernull.orderByAsc("sort_num");
List<EquProperty> properList = new ArrayList<>(); List<EquProperty> properList = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment