Commit 5c4720de authored by zhangsen's avatar zhangsen

文档问题处理

parent 357f6ceb
...@@ -34,6 +34,11 @@ public class TreeDto { ...@@ -34,6 +34,11 @@ public class TreeDto {
private Integer isOnClick; private Integer isOnClick;
/** /**
* 风机首页-配置页面场景ID
*/
private String sceneId;
/**
* 子节点 * 子节点
*/ */
private List<TreeDto> children; private List<TreeDto> children;
......
...@@ -160,7 +160,8 @@ ...@@ -160,7 +160,8 @@
sequence_nbr as code, sequence_nbr as code,
station_type as parentCode, station_type as parentCode,
sequence_nbr as id, sequence_nbr as id,
'1' as isOnclick '1' as isOnclick,
scene_id as sceneId
from station_basic from station_basic
<where> <where>
<if test="regionCode != null and regionCode != ''"> <if test="regionCode != null and regionCode != ''">
......
...@@ -222,6 +222,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -222,6 +222,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
treeDto.setId(String.valueOf(region.getSequenceNbr())); treeDto.setId(String.valueOf(region.getSequenceNbr()));
treeDto.setParentCode("0"); treeDto.setParentCode("0");
treeDto.setIsOnClick(0); treeDto.setIsOnClick(0);
treeDto.setSceneId("987654321");
List<TreeDto> stationListByRegionCode = stationBasicMapper.getStationListByRegionCode(String.valueOf(region.getRegionCode())); List<TreeDto> stationListByRegionCode = stationBasicMapper.getStationListByRegionCode(String.valueOf(region.getRegionCode()));
...@@ -230,6 +231,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -230,6 +231,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
fdzTreeDto.setCode("FDZ"); fdzTreeDto.setCode("FDZ");
fdzTreeDto.setParentCode(String.valueOf(region.getRegionCode())); fdzTreeDto.setParentCode(String.valueOf(region.getRegionCode()));
fdzTreeDto.setIsOnClick(0); fdzTreeDto.setIsOnClick(0);
fdzTreeDto.setSceneId("12345678910");
List<TreeDto> fdz = stationListByRegionCode.stream().filter(t -> t.getParentCode().contains("FDZ") && t.getParentCode().length() < 4).collect(Collectors.toList()); List<TreeDto> fdz = stationListByRegionCode.stream().filter(t -> t.getParentCode().contains("FDZ") && t.getParentCode().length() < 4).collect(Collectors.toList());
fdzTreeDto.setChildren(fdz); fdzTreeDto.setChildren(fdz);
...@@ -238,6 +240,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -238,6 +240,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
gfzTreeDto.setCode("GFZ"); gfzTreeDto.setCode("GFZ");
gfzTreeDto.setParentCode(String.valueOf(region.getRegionCode())); gfzTreeDto.setParentCode(String.valueOf(region.getRegionCode()));
gfzTreeDto.setIsOnClick(0); gfzTreeDto.setIsOnClick(0);
gfzTreeDto.setSceneId("1234567891011");
List<TreeDto> gfz = stationListByRegionCode.stream().filter(t -> t.getParentCode().contains("GFDZ")).collect(Collectors.toList()); List<TreeDto> gfz = stationListByRegionCode.stream().filter(t -> t.getParentCode().contains("GFDZ")).collect(Collectors.toList());
gfzTreeDto.setChildren(gfz); gfzTreeDto.setChildren(gfz);
List<TreeDto> treeDtos = Arrays.asList(fdzTreeDto, gfzTreeDto); List<TreeDto> treeDtos = Arrays.asList(fdzTreeDto, gfzTreeDto);
...@@ -1226,7 +1229,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1226,7 +1229,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
queryCondition.put(CommonConstans.QueryStringSystemTypeKeyword, Arrays.asList("模拟量")); queryCondition.put(CommonConstans.QueryStringSystemTypeKeyword, Arrays.asList("模拟量"));
List<ESEquipments> esEquipmentsList = commonServiceImpl.getListDataByCondtions(queryCondition, null, ESEquipments.class); List<ESEquipments> esEquipmentsList = commonServiceImpl.getListDataByCondtions(queryCondition, null, ESEquipments.class);
// 10kVⅡ段母线数据 // 10kVⅡ段母线数据
List<ESEquipments> xianData = esEquipmentsList.stream().filter(esEquipments -> esEquipments.getFrontModule().equals("35kVⅠ母PT")).collect(Collectors.toList()); List<ESEquipments> xianData = esEquipmentsList.stream().filter(esEquipments -> esEquipments.getFrontModule().contains("35kVⅠ母PT")).collect(Collectors.toList());
HashMap<String, Object> resultMap = new HashMap<>(); HashMap<String, Object> resultMap = new HashMap<>();
xianData.forEach(item -> resultMap.put(item.getDisplayName(), keepTwoDecimalPlaces(item.getValueDouble().toString()))); xianData.forEach(item -> resultMap.put(item.getDisplayName(), keepTwoDecimalPlaces(item.getValueDouble().toString())));
...@@ -1251,6 +1254,9 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator { ...@@ -1251,6 +1254,9 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List<Map<String, String>> boosterStationInfo = monitorFanIndicatorregionMapper.getMajorBoosterStationInfo(gatewayId, "ASC", 5); List<Map<String, String>> boosterStationInfo = monitorFanIndicatorregionMapper.getMajorBoosterStationInfo(gatewayId, "ASC", 5);
ArrayList<Map<String, String>> resultList = new ArrayList<>(); ArrayList<Map<String, String>> resultList = new ArrayList<>();
for (Map<String, String> map : boosterStationInfo) { for (Map<String, String> map : boosterStationInfo) {
if (map.get("boosterName").equals("35kVⅠ母PT")) {
continue;
}
List<ESEquipments> listData = esEquipmentsList.stream().filter(esEquipments -> esEquipments.getFrontModule().contains(map.get("boosterName")) && xyxDisplayNameList.contains(esEquipments.getDisplayName())).collect(Collectors.toList()); List<ESEquipments> listData = esEquipmentsList.stream().filter(esEquipments -> esEquipments.getFrontModule().contains(map.get("boosterName")) && xyxDisplayNameList.contains(esEquipments.getDisplayName())).collect(Collectors.toList());
HashMap<String, String> stringStringHashMap = new HashMap<>(); HashMap<String, String> stringStringHashMap = new HashMap<>();
stringStringHashMap.put("value1", "0.0"); stringStringHashMap.put("value1", "0.0");
......
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