Commit c3ce38b1 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.修改极短期间开预测定时任务逻辑,解决优化后部分优化结果时间段过短问题;
2.修改心知天气气象数据获取及接收定时任务,解决天气数据通过邮件下载后,部分数据精度丢失问题;
3.修改首页各个接口逻辑,对小数类型字段进行处理,修改首页接口,增加小时保留两位四舍五入逻辑,同时解决线路详情接口部分查询逻辑报错问题;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent e2ebbeac
......@@ -44,7 +44,6 @@ import xstartup.annotation.XText;
import xstartup.base.XContext;
import xstartup.data.XListResult;
import xstartup.data.XSingleResult;
import xstartup.feature.api.annotation.XApiAnonymous;
import xstartup.feature.api.annotation.XApiGet;
import java.math.BigDecimal;
......@@ -198,9 +197,9 @@ public class HomePageService {
return XSingleResult.success(GetWellOverviewViewOutput.builder()
.openWellNumber(openWellNumber)
.stopWellNumber(stopWellNumber)
.cumulativeProduction(cumulativeProduction)
.powerGeneration(powerGeneration)
.powerConsumption(powerConsumption)
.cumulativeProduction(cumulativeProduction.setScale(2, RoundingMode.HALF_UP))
.powerGeneration(powerGeneration.setScale(2, RoundingMode.HALF_UP))
.powerConsumption(powerConsumption.setScale(2, RoundingMode.HALF_UP))
.build());
}
......@@ -556,7 +555,6 @@ public class HomePageService {
* @param input 输入
* @return {@link XSingleResult}<{@link GetLineViewOutput}>
*/
@XApiAnonymous
@XText("首页模块--线路详情")
@XApiGet
public XSingleResult<GetLineViewOutput> getLineView(XContext context, GetLineViewInput input) {
......
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