Commit c3ca9686 authored by ZWT's avatar ZWT

feat(吉林演示): 松原

1.开发间开优化结果统计功能,创建间开优化效果统计表,生成对应代码;
2.修改15天,10天,3天,1天间开优化功能,修改代码结构;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent b6b1f2f1
......@@ -1799,7 +1799,8 @@ public class EnergyConsumptionAnalysisService {
BigDecimal defaultPower = CharSequenceUtil.equals(oilFieldCode, BusinessConstant.ENV_CQ) ? BigDecimal.ZERO : null;
for (DateTime dateTime : rangeToList) {
if (avgMap.containsKey(dateTime)) {
powerConsumption = avgMap.get(dateTime).setScale(2, RoundingMode.HALF_UP);
//用电*3
powerConsumption = avgMap.get(dateTime).multiply(BigDecimal.valueOf(3)).setScale(2, RoundingMode.HALF_UP);
} else {
powerConsumption = defaultPower;
}
......
......@@ -336,7 +336,8 @@ public class HomePageService {
BigDecimal powerConsumption;
BigDecimal defaultPower = CharSequenceUtil.equals(oilFieldCode, BusinessConstant.ENV_CQ) ? BigDecimal.ZERO : null;
for (DateTime dateTime : rangeToList) {
powerConsumption = avgMap.getOrDefault(dateTime, defaultPower);
//用电*3
powerConsumption = avgMap.getOrDefault(dateTime, defaultPower).multiply(BigDecimal.valueOf(3));
powerGeneration = powerMap.getOrDefault(dateTime, BigDecimal.ZERO);
outputs.add(GetPowerAnalyseOutput.builder()
.dateFormat(dateTime.toString(BusinessConstant.DATE_FORMAT_ALL))
......
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