Commit e34b104d authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改风电站运行状态接口,增加模拟实际发电功率处理逻辑,完成接口冒烟测试;
2.修改天气数据处理定时任务,解决晚上十一点半天气预报数据处理异常问题,修改风资源预测数据和光伏资源预测数据时间处理逻辑,完成接口冒烟测试;
3.修改风机预测数据模块相关功能接口,增加判断当前部署环境逻辑,解决查询全量数据问题;
4.修改风机预测数据生成模块第三方风力发电数据生成功能,增加数据拆分逻辑,区分15分数据层级,完成功能冒烟测试;
5.修改风机预测监控页面历史风速统计接口,统计数据不显示问题及小数位过多问题;
6.修改天气预报数据爬取定时任务,解决8:00-11:00期间没有数据问题,完成功能验证;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent e47f86f3
...@@ -494,9 +494,9 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService { ...@@ -494,9 +494,9 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
} }
WeatherBureauDataView view = WeatherBureauDataView.builder() WeatherBureauDataView view = WeatherBureauDataView.builder()
.dataTime(parse) .dataTime(parse)
.weatherIcon(dailyData.getWeatherArray().get(i)) .weatherIcon(this.getStringByIndex(dailyData.getWeatherArray(), i))
.airTemperature(this.stringToBigDecimal(dailyData.getTemperatureArray(), i, "℃")) .airTemperature(this.stringToBigDecimal(dailyData.getTemperatureArray(), i, "℃"))
.precipitation(dailyData.getPrecipitationArray().get(i)) .precipitation(this.getStringByIndex(dailyData.getPrecipitationArray(), i))
.windSpeed(this.stringToBigDecimal(dailyData.getWindSpeedArray(), i, "m/s")) .windSpeed(this.stringToBigDecimal(dailyData.getWindSpeedArray(), i, "m/s"))
.windDirection(this.getWindDirection(dailyData.getWindDirectionArray(), i)) .windDirection(this.getWindDirection(dailyData.getWindDirectionArray(), i))
.pressure(this.stringToBigDecimal(dailyData.getPressureArray(), i, "hPa")) .pressure(this.stringToBigDecimal(dailyData.getPressureArray(), i, "hPa"))
...@@ -514,6 +514,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService { ...@@ -514,6 +514,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
} }
} }
/** /**
* 条件删除预测数据 * 条件删除预测数据
* *
...@@ -1101,4 +1102,21 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService { ...@@ -1101,4 +1102,21 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
} }
return result; return result;
} }
/**
* 按索引位置取字符串
*
* @param stringList 字符串列表
* @param i 我
* @return {@link String }
*/
private String getStringByIndex(List<String> stringList, int i) {
String result;
if (CollUtil.isNotEmpty(stringList) && i < stringList.size() && CharSequenceUtil.isNotBlank(stringList.get(i))) {
result = stringList.get(i);
} else {
result = BusinessConstant.DEFAULT_VALUE;
}
return result;
}
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment