Commit d488ff03 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.系统管理模块,查询线路及组织机构树接口修改,增加查询逻辑,通过线路名称模糊查询树列表,完成接口冒烟测试并同步线上接口文档;
2.系统管理模块,查询光伏电站及组织机构树接口修改,增加查询逻辑,通过电站名称模糊查询树列表,完成接口冒烟测试并同步线上接口文档;
3.基础信息配置模块,新增市电峰谷导入模板下载接口,完成接口冒烟测试并同步线上接口文档;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 3d42ca50
...@@ -9,12 +9,16 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; ...@@ -9,12 +9,16 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod; import com.github.pagehelper.page.PageMethod;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import pps.cloud.base.service.IBaseWellheadCloudService;
import pps.cloud.base.service.data.base_wellhead.DynamicQueryBaseWellheadInput;
import pps.cloud.base.service.data.base_wellhead.DynamicQueryBaseWellheadOutput;
import pps.core.auth.HttpRequestClient; import pps.core.auth.HttpRequestClient;
import pps.core.prediction.constant.ThirdPartyApiConstant; import pps.core.prediction.constant.ThirdPartyApiConstant;
import pps.core.prediction.entity.WellheadDailyProductionSituationEnt; import pps.core.prediction.entity.WellheadDailyProductionSituationEnt;
import pps.core.prediction.excel.listener.ThirdActivePowerDataListener; import pps.core.prediction.excel.listener.ThirdActivePowerDataListener;
import pps.core.prediction.mapper.WellheadDailyProductionSituationMapper; import pps.core.prediction.mapper.WellheadDailyProductionSituationMapper;
import pps.core.prediction.service.data.third_active_power.ThirdActivePowerExcelData; import pps.core.prediction.service.data.third_active_power.ThirdActivePowerExcelData;
import pps.core.prediction.service.data.third_current_well_condition.GetThirdCurrentWellConditionViewOutput;
import pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationInput; import pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationInput;
import pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationOutput; import pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationOutput;
import pps.core.prediction.service.data.wellhead_daily_production_situation.QueryWellheadDailyProductionSituationInput; import pps.core.prediction.service.data.wellhead_daily_production_situation.QueryWellheadDailyProductionSituationInput;
...@@ -33,10 +37,8 @@ import xstartup.feature.api.annotation.XApiAnonymous; ...@@ -33,10 +37,8 @@ import xstartup.feature.api.annotation.XApiAnonymous;
import xstartup.feature.api.annotation.XApiGet; import xstartup.feature.api.annotation.XApiGet;
import xstartup.feature.api.annotation.XApiPost; import xstartup.feature.api.annotation.XApiPost;
import java.util.ArrayList; import java.util.*;
import java.util.HashMap; import java.util.stream.Collectors;
import java.util.List;
import java.util.Map;
/** /**
* 井口生产情况模块 * 井口生产情况模块
...@@ -207,4 +209,469 @@ public class WellheadDailyProductionSituationService { ...@@ -207,4 +209,469 @@ public class WellheadDailyProductionSituationService {
EasyExcel.read(fileName, ThirdActivePowerExcelData.class, new ThirdActivePowerDataListener(context)).sheet().doRead(); EasyExcel.read(fileName, ThirdActivePowerExcelData.class, new ThirdActivePowerDataListener(context)).sheet().doRead();
return XServiceResult.OK; return XServiceResult.OK;
} }
@XText("井口")
@XApiGet(anonymous = true)
public XServiceResult wellTest(XContext context) {
String wellResult = "[\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"王侧11-8\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 2.11,\n" +
"\t\t\"starthours\": 5.5,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"2024-05-14T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塞侧29-4\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山31-14\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山33-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山33-14\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山34-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山36-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山37-12\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山39-12\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山40-11\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山41-9\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山43-5\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午249-9\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午252-10\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午252-9\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午291\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午侧249-8\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午平231-04\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山30-15\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山35-12\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山38-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山39-11\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山41-6\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山43-9\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 2.22,\n" +
"\t\t\"starthours\": 4,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"2024-05-13T16:30:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午250-10\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午251-10\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山37-11\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山33-15\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午222-210X\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山37-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山35-14\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山35-15\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山38-11\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山42-9\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"午246-216\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"山32-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙27-23\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 0.26,\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"停井\",\n" +
"\t\t\"next_ExecDate\": \"2024-05-14T04:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙30-23\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬64-82\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 3.74,\n" +
"\t\t\"starthours\": 0.26666666666666669,\n" +
"\t\t\"status\": \"停井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬342-103\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬50-91\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0.6666666666666666,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬48-93\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 1.03,\n" +
"\t\t\"starthours\": 0.36666666666666666,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬40-96\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬341-103\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙24-13\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬49-92\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 3.8,\n" +
"\t\t\"starthours\": 0.36666666666666666,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬42-94\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 2.35,\n" +
"\t\t\"starthours\": 0.38333333333333338,\n" +
"\t\t\"status\": \"开井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙侧28-22\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"成62-16\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"reaL_LIQUID_DAILY\": 1.9,\n" +
"\t\t\"starthours\": 0.26666666666666669,\n" +
"\t\t\"status\": \"停井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙25-12\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"status\": \"停井\",\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"沙侧30-24\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"黄120\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬平57-17\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t},\n" +
"\t{\n" +
"\t\t\"welL_ID\": 0,\n" +
"\t\t\"welL_NAME\": \"塬47-92\",\n" +
"\t\t\"caL_DATE\": \"0001-01-01T00:00:00\",\n" +
"\t\t\"starthours\": 0,\n" +
"\t\t\"next_ExecDate\": \"0001-01-01T00:00:00\"\n" +
"\t}\n" +
"]";
List<GetThirdCurrentWellConditionViewOutput> wellList = JSON.parseArray(wellResult, GetThirdCurrentWellConditionViewOutput.class);
IBaseWellheadCloudService service = context.getBean(IBaseWellheadCloudService.class);
XListResult<DynamicQueryBaseWellheadOutput> result = service.queryBaseWellheadListByParam(context, DynamicQueryBaseWellheadInput.builder()
.build());
result.throwIfFail();
Set<String> collect = result.getResult().stream().map(DynamicQueryBaseWellheadOutput::getWellNumber).collect(Collectors.toSet());
Set<String> apiCollect = wellList.stream().map(GetThirdCurrentWellConditionViewOutput::getWellNumber).collect(Collectors.toSet());
System.out.println("-------------------系统里的井口:");
for (DynamicQueryBaseWellheadOutput output : result.getResult()) {
System.out.println(output.getWellNumber());
}
System.out.println("-------------------长庆接口里的井口:");
for (GetThirdCurrentWellConditionViewOutput output : wellList) {
System.out.println(output.getWellNumber());
}
System.out.println("-------------------系统有长庆没有的井口:");
for (String s : collect) {
if (!apiCollect.contains(s)) {
System.out.println(s);
}
}
System.out.println("-------------------长庆接口有系统里没有的井口:");
for (String s : apiCollect) {
if (!collect.contains(s)) {
System.out.println(s);
}
}
return XServiceResult.OK;
}
} }
\ No newline at end of file
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