Commit c16c9a7b authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.修改天气数据抽取定时任务,解决部分历史数据丢失问题;
2.修改第三方风机电站真实数据定时任务,修改代码逻辑,解决时间未按照15分钟间隔推送问题;
3.修改第三方风机电站模拟数据定时任务,解决时间日期格式错误导致数据重复问题;
4.新建第三方风力发电数据(每日最新数据)表,同时生成对应代码,修改第三方风机电站模拟数据定时任务,增加每日最新数据更新逻辑;
5.修改风资源监控页面场站发电量统计接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;
6.修改风资源监控页面历史风速接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;
7.修改风资源监控页面历史风向接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;
8.修改模拟数据历史表和每日最新数据表,增加发电量字段,同时修改对应代码增加字段并修改模拟数据生成定时任务,增加生成发电量逻辑并添加插入历史表和最新数据表逻辑;
9.修改风资源监控页面风电站运行状态接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;
10.修改风资源监控页面发电功率列表接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;
11.修改风资源监控页面风机运行情况接口,增加模拟数据查询逻辑,修改代码完成冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 71dc11b4
......@@ -478,15 +478,27 @@ public class WindPredictionFutureService {
output.setVaneLength(turbineView.getVaneLength());
output.setHubHeight(turbineView.getHubHeight());
output.setAreaName(turbineView.getCityName());
//模拟数据
ThirdWindPowerGenerationUpdateMapper bean = context.getBean(ThirdWindPowerGenerationUpdateMapper.class);
ThirdWindPowerGenerationUpdateEnt selectOne = bean.selectOne(new LambdaQueryWrapper<ThirdWindPowerGenerationUpdateEnt>()
.eq(ThirdWindPowerGenerationUpdateEnt::getStationId, input.getStationId())
.orderByDesc(ThirdWindPowerGenerationUpdateEnt::getCollectTime)
.last(BusinessConstant.LAST_LIMIT)
);
//todo 型号暂时不知道从哪来
output.setModelNumber(BusinessConstant.DEFAULT_VALUE);
//todo 第三方发电量(后续接入)
output.setDailyGeneration(BigDecimal.ZERO);
output.setGrossGeneration(BigDecimal.ZERO);
output.setDailyGeneration(selectOne.getActualGeneration());
output.setActivePower(selectOne.getActualPower());
output.setActualWindSpeed(selectOne.getActualWindSpeed());
//总计数据
selectOne = bean.selectOne(new QueryWrapper<ThirdWindPowerGenerationUpdateEnt>()
.select("SUM( actual_generation ) AS actual_generation")
.lambda()
.eq(ThirdWindPowerGenerationUpdateEnt::getStationId, input.getStationId())
);
output.setGrossGeneration(selectOne.getActualGeneration());
output.setRunTime(BigDecimal.ZERO);
output.setActivePower(BigDecimal.ZERO);
output.setRunState("启动");
output.setActualWindSpeed(BigDecimal.ZERO);
return XSingleResult.success(output);
}
......
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