|
@@ -44,23 +44,23 @@ public class LeaderboardService {
|
|
|
|
|
|
public List<StatisticalAnalysisTopVo> getRnewTopDate(String wpIps, Date beginDate, Date endDate) {
|
|
|
|
|
|
- List<String> wpls=new ArrayList<>();
|
|
|
- if (StringUtils.empty(wpIps)) {
|
|
|
-
|
|
|
- for (Windpowerstation wp : InitialRunner.wpls) {
|
|
|
- if(wp.getId().endsWith("FDC"))
|
|
|
- {
|
|
|
- wpls.add(wp.getId());
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- wpls.add(wpIps);
|
|
|
- }
|
|
|
- List<StatisticalAnalysisRnewTopVo> list =activePowerDataService.getStatisticalAnalysisRnewTopVoList(wpls,beginDate, endDate);
|
|
|
-
|
|
|
- List<Windturbinecurvefittingmonth> windturbineList=windturbinecurvefittingmonthService.getWindturbinecurvefittingmonthList(endDate);
|
|
|
+// List<String> wpls=new ArrayList<>();
|
|
|
+// if (StringUtils.empty(wpIps)) {
|
|
|
+//
|
|
|
+// for (Windpowerstation wp : InitialRunner.wpls) {
|
|
|
+// if(wp.getId().endsWith("FDC"))
|
|
|
+// {
|
|
|
+// wpls.add(wp.getId());
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// wpls.add(wpIps);
|
|
|
+// }
|
|
|
+ List<StatisticalAnalysisRnewTopVo> list =activePowerDataService.getStatisticalAnalysisRnewTopVoList(wpIps,beginDate, endDate);
|
|
|
+
|
|
|
+ List<Windturbinecurvefittingmonth> windturbineList=windturbinecurvefittingmonthService.getWindturbinecurvefittingmonthList(wpIps,endDate);
|
|
|
|
|
|
Map<String, Map<Double, Windturbinecurvefittingmonth>> res = new HashMap<String, Map<Double,Windturbinecurvefittingmonth>>();
|
|
|
Map<Double, Windturbinecurvefittingmonth> map = null;
|
|
@@ -260,7 +260,7 @@ public class LeaderboardService {
|
|
|
public List<Windturbineinfoday3> lossList(Tablepar tablepar, String wpIds, Date beginDate, Date endDate, String type) {
|
|
|
List<Windturbineinfoday3> ls=new ArrayList<>();
|
|
|
|
|
|
- if (StringUtils.notEmp(wpIds) && StringUtils.notEmp(type) && StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
|
|
|
+ if ( StringUtils.notEmp(type) && StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
|
|
|
|
|
|
|
|
|
ls = windturbineinfoday3Service.lossList(tablepar, wpIds, beginDate, endDate, type);
|