Commit 8c84f881 authored by maoying's avatar maoying

修改设备编辑参数分类显示异常

parent add5a0fa
...@@ -181,7 +181,7 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -181,7 +181,7 @@ public class FireFightingSystemController extends AbstractBaseController {
@ApiOperation(httpMethod = "GET", value = "通过装备定义id查找性能指标") @ApiOperation(httpMethod = "GET", value = "通过装备定义id查找性能指标")
public Map<String, Object> getPrefList(Long equipmentId, Long specificId) { public Map<String, Object> getPrefList(Long equipmentId, Long specificId) {
HashMap<String, List> map = new HashMap<>(); HashMap<String, List> map = new HashMap<>();
ConcurrentHashMap map1 = new ConcurrentHashMap(); 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<>(); QueryWrapper<EquipmentIndex> wrapper = new QueryWrapper<>();
...@@ -201,6 +201,7 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -201,6 +201,7 @@ public class FireFightingSystemController extends AbstractBaseController {
equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId()); equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId());
properList.add(equProperty); properList.add(equProperty);
}); });
properALlList.addAll(properList);
map.put(x, properList); map.put(x, properList);
}); });
QueryWrapper<EquipmentIndex> wrappernull = new QueryWrapper<>(); QueryWrapper<EquipmentIndex> wrappernull = new QueryWrapper<>();
...@@ -220,7 +221,8 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -220,7 +221,8 @@ public class FireFightingSystemController extends AbstractBaseController {
equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId()); equProperty.setEquipmentIndexKey(y.getPerfQuotaDefinitionId());
properList.add(equProperty); properList.add(equProperty);
}); });
properList.forEach(e -> { properALlList.addAll(properList);
properALlList.forEach(e -> {
List<EquipmentIndexVO> equipmentIndexList = equipmentSpecificIndexMapper.getEquipIndexByIndexId(e.getEquipmentIndexId(), specificId); List<EquipmentIndexVO> equipmentIndexList = equipmentSpecificIndexMapper.getEquipIndexByIndexId(e.getEquipmentIndexId(), specificId);
if (equipmentIndexList.size() > 0) { if (equipmentIndexList.size() > 0) {
if (StringUtil.isNotEmpty(equipmentIndexList.get(0).getValue())) { if (StringUtil.isNotEmpty(equipmentIndexList.get(0).getValue())) {
......
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