判断i的值在basicWindPowerList中是否拥有,如果没有进入if判断里面的逻辑
for (double i = 0; i <= 25; i += 0.5){
String index = String.valueOf(i);
if (!basicWindPowerList.stream().filter(w->String.valueOf(w.getWind()).equals(index)).findAny().isPresent()){
Double d = basicWindPowerService.getShouldPowerByWPPairs(basicWindPowerList,i);
BigDecimal power = new BigDecimal(d);
BigDecimal p = power.setScale(1,BigDecimal.ROUND_HALF_DOWN);
BasicWindPower basicWindPower = new BasicWindPower();
basicWindPower.setPower(p);
basicWindPower.setWind(BigDecimal.valueOf(i));
basicWindPower.setSchemeId(schemeId);
basicWindPowerList.add(basicWindPower);
}
}