|
|
@@ -75,16 +75,15 @@ public class ProEconEquipmentInfoDayTopServiceImpl extends ServiceImpl<ProEconEq
|
|
|
peeidt.setDaylyxs(NumberUtil.round(day.getLyxs(), 2).doubleValue());
|
|
|
peeidt.setDaysbklyl(NumberUtil.round(day.getKlyl(), 2).doubleValue());
|
|
|
peeidt.setDayyxfss(NumberUtil.round(day.getYxfss(), 2).doubleValue());
|
|
|
- peeidt.setDayjfpl(NumberUtil.round(day.getJfpl(), 2).doubleValue());
|
|
|
+ peeidt.setDayjfpl(NumberUtil.round(day.getJfpl() * 100, 2).doubleValue());
|
|
|
+ peeidt.setDayxfqr(NumberUtil.round(day.getXfqrfs(), 2).doubleValue());
|
|
|
peeidt.setDayRank(Integer.valueOf(day.getLevel()));
|
|
|
- peeidt.setDayLevel(level(day.getScore(), i-1));
|
|
|
+ peeidt.setDayLevel(level(day.getScore(), i - 1));
|
|
|
});
|
|
|
return peeidtRecords;
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
private String level(Double score, int i) {
|
|
|
score = 0 != i ? score / i : 0.0;
|
|
|
String top;
|
|
|
@@ -115,7 +114,7 @@ public class ProEconEquipmentInfoDayTopServiceImpl extends ServiceImpl<ProEconEq
|
|
|
List<TurbineInfoDay> turbineMonthList = turbineInfoDayService.getTurbineMonthList(windpowerstationId, startDate, endDate);
|
|
|
List<TurbineInfoDay> collect = turbineMonthList.stream().sorted((t1, t2) -> t2.getScore().compareTo(t1.getScore())).collect(Collectors.toList());
|
|
|
for (int i = 1; i <= collect.size(); i++) {
|
|
|
- collect.get(i-1).setLevel(String.valueOf(i));
|
|
|
+ collect.get(i - 1).setLevel(String.valueOf(i));
|
|
|
}
|
|
|
if (pageNum == null || pageSize == null || pageNum < 1 || pageSize < 1) {
|
|
|
return turbineMonthList;
|