Commit b8f135dd authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.对接第三方接口,接入第三方数据,完成Token接口验证,抽取公用方法封装调用工具类;
2.对接第三方接口,完成获取日耗电日产液等信息接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
3.对接第三方接口,完成获取有功功率数据信息接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
4.对接第三方接口,完成获取甘特图数据接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
5.对接第三方接口,完成本日累计数据接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;
6.对接第三方接口,完成光伏发电量接口调用,创建数据表,同时生成对应代码,开发定时任务及对外接口,完成第三方数据接入及系统展示功能,添加线上接口文档并完成接口及定时任务冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent b5438adc
......@@ -22,6 +22,7 @@ import xstartup.annotation.XText;
import xstartup.base.XContext;
import xstartup.base.XStartup;
import xstartup.base.util.XCopyUtils;
import xstartup.base.util.XHttpUtils;
import xstartup.data.XListResult;
import xstartup.data.XPageResult;
import xstartup.data.XServiceResult;
......@@ -155,7 +156,7 @@ public class WellheadDailyProductionSituationService {
public XServiceResult test(XContext context) {
context.getLogger().info("---------------------------cqToken---------------------------");
String cqToken = "";
String api = "";
String api;
try {
cqToken = ServiceUtil.getToken(context);
context.getLogger().info("cqToken: " + cqToken);
......@@ -170,7 +171,7 @@ public class WellheadDailyProductionSituationService {
try {
api = url + ThirdPartyApiConstant.CQ_WELL_TECH_DAILY;
Map<String, Object> param = new HashMap<>(4);
param.put("Calc_Date", "2024-03-15");
param.put("Calc_Date", "2024-03-18");
String s = client.doPostForm(api, param);
context.getLogger().info("CQ_WELL_TECH_DAILY: " + s);
} catch (Exception e) {
......@@ -188,8 +189,7 @@ public class WellheadDailyProductionSituationService {
try {
api = url + ThirdPartyApiConstant.CQ_RPT_SYSTEM_START_STOP;
Map<String, Object> param = new HashMap<>(4);
param.put("Org_Name", "第一采油厂");
param.put("WELL_NAME", "丹161");
param.put("WELL_NAME", "王101-23");
String s = client.doPostForm(api, param);
context.getLogger().info("CQ_RPT_SYSTEM_START_STOP: " + s);
} catch (Exception e) {
......@@ -203,6 +203,27 @@ public class WellheadDailyProductionSituationService {
} catch (Exception e) {
e.printStackTrace();
}
context.getLogger().info("---------------------------CQ_STATION_DAILY_PV_DATA---------------------------");
try {
api = url + ThirdPartyApiConstant.CQ_STATION_DAILY_PV_DATA;
Map<String, Object> param = new HashMap<>(4);
param.put("Calc_Date", "2024-03-18");
String s = client.doPostForm(api, param);
context.getLogger().info("CQ_STATION_DAILY_PV_DATA: " + s);
} catch (Exception e) {
e.printStackTrace();
}
context.getLogger().info("---------------------------JI_CHENG_TOKEN---------------------------");
try {
String t = "http://10.59.249.10:8183/admin-api/system/auth/login";
Map<String, String> param = new HashMap<>(4);
param.put("username", "31b5604627e345ebb48175de8f2ee0bdem55ajAwMQ==kj");
param.put("password", "sdSktfem55ajAwMSFAIzEw8ef354f215d44c0eafd403ab7a1ce74a");
String result = XHttpUtils.postAsJson(url, JSON.toJSONString(param));
context.getLogger().info("JI_CHENG_TOKEN: " + result);
} catch (Exception e) {
e.printStackTrace();
}
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