微调
This commit is contained in:
@@ -163,7 +163,6 @@ public class HarmonicServiceImpl implements IHarmonicService {
|
|||||||
harmonicDeptVO.setName(item.getName());
|
harmonicDeptVO.setName(item.getName());
|
||||||
list.add(harmonicDeptVO);
|
list.add(harmonicDeptVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
if (!CollectionUtils.isEmpty(list)){
|
if (!CollectionUtils.isEmpty(list)){
|
||||||
return list.stream().sorted(Comparator.comparing(HarmonicDeptVO::getRatio).reversed().thenComparing(HarmonicDeptVO::getOnlineCount).thenComparing(HarmonicDeptVO::getOverLineCount)).collect(Collectors.toList());
|
return list.stream().sorted(Comparator.comparing(HarmonicDeptVO::getRatio).reversed().thenComparing(HarmonicDeptVO::getOnlineCount).thenComparing(HarmonicDeptVO::getOverLineCount)).collect(Collectors.toList());
|
||||||
@@ -440,7 +439,7 @@ public class HarmonicServiceImpl implements IHarmonicService {
|
|||||||
} else {
|
} else {
|
||||||
avgOverDay = overLineCount == 0?0.0:BigDecimal.valueOf(overCountByDay*1.0/overLineCount).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
avgOverDay = overLineCount == 0?0.0:BigDecimal.valueOf(overCountByDay*1.0/overLineCount).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
||||||
}
|
}
|
||||||
//月监测点超标占比
|
//月监测点符合性超标占比
|
||||||
ratio = map.size() == 0?0:BigDecimal.valueOf(ratio*100/map.size()).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
ratio = map.size() == 0?0:BigDecimal.valueOf(ratio*100/map.size()).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
||||||
areaDTO.setOnlineCount(onlineCount);
|
areaDTO.setOnlineCount(onlineCount);
|
||||||
areaDTO.setOverLineCount(overLineCount);
|
areaDTO.setOverLineCount(overLineCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user