Commit def77ba8 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.长庆演示首页功能开发,新增查询井场/场站列表接口,添加接口文档并完成接口冒烟测试;
2.长庆演示首页功能开发,新增总览信息统计接口,添加接口文档并完成接口冒烟测试;
3.长庆演示首页功能开发,新增用能分析统计接口,添加接口文档并完成接口冒烟测试;
4.长庆演示首页功能开发,新增累计用电统计接口,添加接口文档并完成接口冒烟测试;
5.长庆演示首页功能开发,新增光伏实时监控统计接口,添加接口文档并完成接口冒烟测试;
6.长庆演示首页功能开发,新增先导实验井间开制度统计接口,添加接口文档并完成接口冒烟测试;
7.长庆演示首页功能开发,新增零碳井场收益分析统计接口,添加接口文档并完成接口冒烟测试;
8.长庆演示首页功能开发,新增零碳井场实时监控接口,添加接口文档并完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent e37c049b
......@@ -381,12 +381,18 @@ public class HomePageService {
.subtract(analysisEnt.getPowerGeneration()
.multiply(BigDecimal.valueOf(0.28)))
.setScale(2, BigDecimal.ROUND_HALF_UP);
//绿电占比
BigDecimal greenElectricityRate = this.getAbsorptionRate(analysisEnt.getPowerGeneration(), analysisEnt.getPowerConsumption());
BigDecimal bigDecimal = new BigDecimal(100);
if (greenElectricityRate.compareTo(bigDecimal) > 0) {
greenElectricityRate = bigDecimal;
}
return XSingleResult.success(GetIncomeAnalysisOutput.builder()
.absorptionRate(BigDecimal.valueOf(100))
.avoidPeakRate(BigDecimal.valueOf(100))
.energyStorageCapacity(BigDecimal.ZERO)
.powerGeneration(powerGeneration)
.greenElectricityRate(this.getAbsorptionRate(analysisEnt.getPowerGeneration(), analysisEnt.getPowerConsumption()))
.greenElectricityRate(greenElectricityRate)
.carbonReduction(carbonReduction)
.economicBenefit(economicBenefit)
.build());
......
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