补充新更新

This commit is contained in:
2022-06-22 09:14:52 +08:00
parent 59da3376c1
commit 6870c2ccc3
323 changed files with 18518 additions and 441 deletions

View File

@@ -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);
}