Commit 4488fd8a authored by ZWT's avatar ZWT

feat[零碳项目]: 松原演示

[
1.修改日耗电日产液信息定时任务及井口生产情况表表结构,增加来源系统字段,同时修改代码批量插入逻辑;
2.修改日用电趋势计算定时任务,修改代码逻辑,增加区分来源系统逻辑;
3.修改能耗分析定时任务定时任务,修改代码逻辑,增加区分来源系统逻辑;
4.修改第三方有功功率定时任务,修改代码逻辑,增加区分来源系统逻辑;
5.修改第三方当日油井状态定时任务,修改代码逻辑,增加区分来源系统逻辑;
]
parent 80ba1cac
...@@ -137,6 +137,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer ...@@ -137,6 +137,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
if (CollUtil.isEmpty(outputs)) { if (CollUtil.isEmpty(outputs)) {
return XServiceResult.OK; return XServiceResult.OK;
} }
String oilFieldCode = ServiceUtil.getOilFieldCode(context);
DateTime date = DateUtil.date(); DateTime date = DateUtil.date();
//先删后增 //先删后增
BigDecimal cumulativeProduction; BigDecimal cumulativeProduction;
...@@ -146,7 +147,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer ...@@ -146,7 +147,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
cumulativeProduction = cumulativeProduction.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : cumulativeProduction; cumulativeProduction = cumulativeProduction.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : cumulativeProduction;
dtoList.add( dtoList.add(
ThirdCurrentWellConditionView.builder() ThirdCurrentWellConditionView.builder()
.systemSource(ThirdPartyApiConstant.CQ_SOURCE) .systemSource(oilFieldCode)
.wellNumber(o.getWellNumber()) .wellNumber(o.getWellNumber())
.nextTime(o.getNextTime()) .nextTime(o.getNextTime())
.wellStatus(Optional.ofNullable(o.getWellStatus()).orElse("停井")) .wellStatus(Optional.ofNullable(o.getWellStatus()).orElse("停井"))
......
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