|
@@ -23,6 +23,7 @@ import java.math.BigDecimal;
|
|
|
import java.math.RoundingMode;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : WindturbinegoodnessService
|
|
@@ -907,7 +908,7 @@ public class WindturbinegoodnessService {
|
|
|
equipmentInfoDay6s.getRecords().forEach(i -> {
|
|
|
PvVo vo = new PvVo();
|
|
|
vo.setWtid(i.getWindturbineId());
|
|
|
- vo.setWtname(wtmap.get(i.getWindturbineId()).getAname());
|
|
|
+ vo.setWtname(wtmap.get(i.getWindturbineId()).getNemName());
|
|
|
vo.setModel(modelMap.get(wtmap.get(i.getWindturbineId()).getModelId()).getAname());
|
|
|
vo.setRxtxl(DoubleUtils.keepPrecision(i.getRxtxl(), 2));
|
|
|
vo.setRlsl(DoubleUtils.keepPrecision(i.getRlsl(), 2));
|
|
@@ -929,7 +930,15 @@ public class WindturbinegoodnessService {
|
|
|
SortUtils.sort(resultList, target, SortUtils.DESC);
|
|
|
}
|
|
|
|
|
|
- pvVoPage.setRecords(resultList);
|
|
|
+ List<PvVo> collect = resultList.stream().filter(wv -> {
|
|
|
+ boolean b = false;
|
|
|
+ if (com.gyee.common.model.StringUtils.isNotEmpty(wv.getWtname())) {
|
|
|
+ b = wv.getWtname().contains("逆变器") || wv.getWtname().contains("风机");
|
|
|
+ }
|
|
|
+ return b;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+
|
|
|
+ pvVoPage.setRecords(collect);
|
|
|
pvVoPage.setTotal(equipmentInfoDay6s.getTotal());
|
|
|
pvVoPage.setPages(equipmentInfoDay6s.getPages());
|
|
|
pvVoPage.setCurrent(equipmentInfoDay6s.getCurrent());
|