Commit cfb008de authored by ZWT's avatar ZWT

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

[
1.修改日耗电日产液信息定时任务及井口生产情况表表结构,增加来源系统字段,同时修改代码批量插入逻辑;
2.修改日用电趋势计算定时任务,修改代码逻辑,增加区分来源系统逻辑;
3.修改能耗分析定时任务定时任务,修改代码逻辑,增加区分来源系统逻辑;
4.修改第三方有功功率定时任务,修改代码逻辑,增加区分来源系统逻辑;
5.修改第三方当日油井状态定时任务,修改代码逻辑,增加区分来源系统逻辑;
6.修改第三方井场日累计数据定时任务,修改代码逻辑,增加区分来源系统逻辑;
7.修改第三方光伏日发电量定时任务,修改代码逻辑,增加区分来源系统逻辑;
8.修改第三井平均有功功率作业定时任务,修改代码逻辑,增加区分来源系统逻辑;
9.修改日耗电日产液信息定时任务,修改代码逻辑,增加区分来源系统逻辑;
]
parent b108224f
...@@ -177,6 +177,7 @@ public class PlantPredictedPowerCloudServiceImpl implements IPlantPredictedPower ...@@ -177,6 +177,7 @@ public class PlantPredictedPowerCloudServiceImpl implements IPlantPredictedPower
*/ */
@Override @Override
public XServiceResult wellTechDailyJob(XContext context) { public XServiceResult wellTechDailyJob(XContext context) {
String oilFieldCode = ServiceUtil.getOilFieldCode(context);
String token = ServiceUtil.getToken(context); String token = ServiceUtil.getToken(context);
HttpRequestClient client = new HttpRequestClient(token); HttpRequestClient client = new HttpRequestClient(token);
Map<String, Object> param = new HashMap<>(4); Map<String, Object> param = new HashMap<>(4);
...@@ -200,7 +201,6 @@ public class PlantPredictedPowerCloudServiceImpl implements IPlantPredictedPower ...@@ -200,7 +201,6 @@ public class PlantPredictedPowerCloudServiceImpl implements IPlantPredictedPower
.wellNumbers(collect) .wellNumbers(collect)
.build()); .build());
result.throwIfFail(); result.throwIfFail();
String oilFieldCode = ServiceUtil.getOilFieldCode(context);
Map<String, String> map = result.getResult().stream() Map<String, String> map = result.getResult().stream()
.collect(Collectors.toMap(DynamicQueryBaseWellheadOutput::getWellNumber, DynamicQueryBaseWellheadOutput::getId)); .collect(Collectors.toMap(DynamicQueryBaseWellheadOutput::getWellNumber, DynamicQueryBaseWellheadOutput::getId));
List<WellheadDailyProductionSituationView> dtoList = new ArrayList<>(list.size()); List<WellheadDailyProductionSituationView> dtoList = new ArrayList<>(list.size());
......
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