Commit 595308c9 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改风资源监控页面历史风向统计接口,解决只能统计出一种风向问题,完成接口冒烟测试;
2.修改风资源监控页面风电站运行状态接口,解决没有启动状态时无法查询数据问题,完成接口冒烟测试;
3.修改风资源监控页面发电功率预测接口,增加使用模拟数据生成风电实际功率,完成接口冒烟测试;
4.修改风资源历史数据处理定时任务,增加模拟真实数据匹配逻辑,完成冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 1646d6d0
...@@ -69,7 +69,6 @@ public class WindPredictionHistoryCloudServiceImpl implements IWindPredictionHis ...@@ -69,7 +69,6 @@ public class WindPredictionHistoryCloudServiceImpl implements IWindPredictionHis
//按时间范围删除数据 //按时间范围删除数据
WindPredictionHistoryViewMapper viewMapper = context.getBean(WindPredictionHistoryViewMapper.class); WindPredictionHistoryViewMapper viewMapper = context.getBean(WindPredictionHistoryViewMapper.class);
viewMapper.deleteByTimeRange(startTime, endTime); viewMapper.deleteByTimeRange(startTime, endTime);
//todo 数据处理,匹配实际发电量和实际风速
if (historyList.size() > BaseUtils.BATCH_SIZE) { if (historyList.size() > BaseUtils.BATCH_SIZE) {
List<List<WindPredictionHistoryView>> subList = BaseUtils.getSubList(historyList); List<List<WindPredictionHistoryView>> subList = BaseUtils.getSubList(historyList);
subList.forEach(viewMapper::batchInsert); subList.forEach(viewMapper::batchInsert);
...@@ -84,7 +83,7 @@ public class WindPredictionHistoryCloudServiceImpl implements IWindPredictionHis ...@@ -84,7 +83,7 @@ public class WindPredictionHistoryCloudServiceImpl implements IWindPredictionHis
/** /**
* 数据处理 * 数据处理
* todo 后续增加匹配实际发电量和实际风速逻辑 * todo 模拟数据
* *
* @param list 列表 * @param list 列表
* @param collect 收集 * @param collect 收集
......
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