Commit a8b9e39e authored by ZWT's avatar ZWT

feat(零碳): 长庆

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

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 8bce30d7
...@@ -144,13 +144,17 @@ public class HomePageService { ...@@ -144,13 +144,17 @@ public class HomePageService {
@XApiGet @XApiGet
public XSingleResult<GetWellOverviewViewOutput> getWellOverview(XContext context, GetStationViewInput input) { public XSingleResult<GetWellOverviewViewOutput> getWellOverview(XContext context, GetStationViewInput input) {
String stationId = input.getStationId(); String stationId = input.getStationId();
int openWellNumber = 0;
int stopWellNumber = 0;
BigDecimal cumulativeProduction = BigDecimal.ZERO;
BigDecimal powerGeneration = BigDecimal.ZERO;
BigDecimal powerConsumption = BigDecimal.ZERO;
try {
//实时井口 //实时井口
String wellResult = ServiceUtil.doPostFormCq(context, String wellResult = ServiceUtil.doPostFormCq(context,
ThirdPartyApiConstant.CQ_WELL_REAL_PV_DATA, ThirdPartyApiConstant.CQ_WELL_REAL_PV_DATA,
new HashMap<>(0)); new HashMap<>(0));
List<GetThirdCurrentWellConditionViewOutput> wellList = JSON.parseArray(wellResult, GetThirdCurrentWellConditionViewOutput.class); List<GetThirdCurrentWellConditionViewOutput> wellList = JSON.parseArray(wellResult, GetThirdCurrentWellConditionViewOutput.class);
int openWellNumber = 0;
int stopWellNumber = 0;
if (CollUtil.isNotEmpty(wellList)) { if (CollUtil.isNotEmpty(wellList)) {
Set<String> set = this.getWellList(context, stationId).stream() Set<String> set = this.getWellList(context, stationId).stream()
.map(DynamicQueryBaseWellheadOutput::getWellNumber) .map(DynamicQueryBaseWellheadOutput::getWellNumber)
...@@ -165,9 +169,6 @@ public class HomePageService { ...@@ -165,9 +169,6 @@ public class HomePageService {
} }
} }
} }
BigDecimal cumulativeProduction = BigDecimal.ZERO;
BigDecimal powerGeneration = BigDecimal.ZERO;
BigDecimal powerConsumption = BigDecimal.ZERO;
//实时站 //实时站
String stationResult = ServiceUtil.doPostFormCq(context, String stationResult = ServiceUtil.doPostFormCq(context,
ThirdPartyApiConstant.CQ_GROUP_REAL_PV_DATA, ThirdPartyApiConstant.CQ_GROUP_REAL_PV_DATA,
...@@ -185,6 +186,9 @@ public class HomePageService { ...@@ -185,6 +186,9 @@ public class HomePageService {
} }
} }
} }
} catch (Exception e) {
context.getLogger().error(e);
}
return XSingleResult.success(GetWellOverviewViewOutput.builder() return XSingleResult.success(GetWellOverviewViewOutput.builder()
.openWellNumber(openWellNumber) .openWellNumber(openWellNumber)
.stopWellNumber(stopWellNumber) .stopWellNumber(stopWellNumber)
......
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