Commit 9cd3c0d2 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改风电站运行状态接口,增加模拟实际发电功率处理逻辑,完成接口冒烟测试;
2.修改天气数据处理定时任务,解决晚上十一点半天气预报数据处理异常问题,修改风资源预测数据和光伏资源预测数据时间处理逻辑,完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent c4b6614c
......@@ -164,6 +164,11 @@ public class BusinessConstant {
*/
public static final Integer TEN = 10;
/**
* 集合最大值
*/
public static final Integer LIST_MAX_SIZE = 13312;
/**
* 0.25
......
......@@ -153,7 +153,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
List<ThirdWeatherDataView> weatherDataViewList = new ArrayList<>(2048);
//todo 老表逻辑(后期删除):后续可能替换
List<String> oldDeleteList = new ArrayList<>(32);
List<PlantPredictedPowerDataEnt> oldBatchList = new ArrayList<>(13312);
List<PlantPredictedPowerDataEnt> oldBatchList = new ArrayList<>(BusinessConstant.LIST_MAX_SIZE);
//取未读邮件
Store store = null;
Folder folder = null;
......@@ -428,7 +428,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
private void weatherBureauDataProcess(XContext context, List<JSONObject> jsonObjectList) {
context.getLogger().info("------ weatherDataProcess weatherBureauDataProcess begin ------");
List<String> deleteList = new ArrayList<>(32);
List<WeatherBureauDataView> batchList = new ArrayList<>(13312);
List<WeatherBureauDataView> batchList = new ArrayList<>(BusinessConstant.LIST_MAX_SIZE);
DateTime create = DateUtil.date();
DateTime end = DateUtil.offsetDay(create, 16);
int count = 0;
......@@ -582,7 +582,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
}
context.getLogger().info("------ weatherDataProcess dataFractionation");
List<String> deleteList = new ArrayList<>(32);
List<WindPredictionFutureView> batchList = new ArrayList<>(13312);
List<WindPredictionFutureView> batchList = new ArrayList<>(BusinessConstant.LIST_MAX_SIZE);
DateTime create = DateUtil.date();
DateTime end = DateUtil.offsetDay(create, 16);
//按照cityCode分组
......@@ -814,7 +814,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
}
context.getLogger().info("------ weatherDataProcess dataFractionation");
List<String> deleteList = new ArrayList<>(32);
List<PlantPredictedPowerDataEnt> batchList = new ArrayList<>(13312);
List<PlantPredictedPowerDataEnt> batchList = new ArrayList<>(BusinessConstant.LIST_MAX_SIZE);
DateTime create = DateUtil.date();
DateTime end = DateUtil.offsetDay(create, 16);
//按照cityCode分组
......
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