|
@@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
|
public class PerformanceCurvefittingService {
|
|
@@ -61,7 +62,9 @@ public class PerformanceCurvefittingService {
|
|
|
tempList.add(vo);
|
|
|
});
|
|
|
SortUtils.sort(tempList, "speed", SortUtils.ASC);
|
|
|
- resultMap.put(windturbineIds, tempList);
|
|
|
+
|
|
|
+ resultMap.put("list", tempList);
|
|
|
+ resultMap.put("chanrt", tempList.stream().filter(i -> (i.getSpeed()%Double.valueOf(0.5))==0).collect(Collectors.toList()));
|
|
|
}
|
|
|
}
|
|
|
|