Commit 5d1fbbfb authored by ZWT's avatar ZWT

feat(零碳): 长庆演示系统新增功能

1.新建油田配置表同时生成相关代码及mapper文件,修改部分第三方数据抽取定时任务,增加针对不同井场开关控制逻辑,同时修改首页页面展示逻辑,通过油田配置功能区分不同首页展示功能;
2.新建定时任务配置表同时生成相关代码及mapper文件,定时任务模块增加mybatis配置,用以操作数据库,修改部分第三方数据抽取定时任务,修改使用方式使其脱离框架方便动态控制;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 8e8c86d2
......@@ -110,6 +110,11 @@ public class BusinessConstant {
*/
public static final Integer FOUR = 4;
/**
* 5
*/
public static final Integer FIVE = 5;
/**
* 10
*/
......
......@@ -140,7 +140,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
for (JSONObject jsonObject : jsonObjectList) {
this.dataFractionation(jsonObject, plantMap, deleteList, create, end, batchList, timeList);
count++;
if (BusinessConstant.TEN.equals(count)) {
if (BusinessConstant.FIVE.equals(count)) {
this.deletePlantPredictedPowerList(context, deleteList);
this.insertBatchPlantPredictedPowerList(context, batchList);
logger.info("------ weatherDataProcess clear size d {} b {}", deleteList.size(), batchList.size());
......@@ -153,6 +153,7 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
this.deletePlantPredictedPowerList(context, deleteList);
this.insertBatchPlantPredictedPowerList(context, batchList);
logger.info("------ weatherDataProcess delete and insertBatch finish");
CollUtil.clear(deleteList, batchList);
});
}
return XServiceResult.OK;
......
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