补充新更新
This commit is contained in:
@@ -337,6 +337,7 @@ public class HighAnalyticServiceImpl implements HighAnalyticService {
|
||||
|
||||
if (CollectionUtil.isNotEmpty(dictDataList)) {
|
||||
//获取负荷指标详情
|
||||
dictDataList = dictDataList.stream().filter(item ->item.getAlgoDescribe().equals(1)).collect(Collectors.toList());
|
||||
|
||||
EleMd eleMd = eleMdMapper.selectById(loadType);
|
||||
if (Objects.isNull(eleMd)) {
|
||||
@@ -382,13 +383,15 @@ public class HighAnalyticServiceImpl implements HighAnalyticService {
|
||||
}
|
||||
|
||||
|
||||
List<LoadTendencyVO> jin = list.stream().filter(item -> item.getLoadName().equals("高压进线")).collect(Collectors.toList());
|
||||
Float all = Float.parseFloat(jin.get(0).getValue().get(0).get(1));
|
||||
List<LoadTendencyVO> other = list.stream().filter(item -> !item.getLoadName().equals("高压进线")).collect(Collectors.toList());
|
||||
for (LoadTendencyVO loadTendencyVO : other) {
|
||||
float allTem = 0f;
|
||||
for (LoadTendencyVO loadTendencyVO : list) {
|
||||
allTem+= Float.parseFloat(loadTendencyVO.getValue().get(0).get(1));
|
||||
}
|
||||
|
||||
for (LoadTendencyVO loadTendencyVO : list) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("name", loadTendencyVO.getLoadName());
|
||||
Float a = Float.parseFloat(loadTendencyVO.getValue().get(0).get(1)) / all;
|
||||
Float a = Float.parseFloat(loadTendencyVO.getValue().get(0).get(1)) / allTem;
|
||||
map.put("value", a.toString());
|
||||
res.add(map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user