Commit 9d4730ad authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.长庆演示首页功能开发,新增查询井场/场站列表接口,添加接口文档并完成接口冒烟测试;
2.长庆演示首页功能开发,新增总览信息统计接口,添加接口文档并完成接口冒烟测试;
3.长庆演示首页功能开发,新增用能分析统计接口,添加接口文档并完成接口冒烟测试;
4.长庆演示首页功能开发,新增累计用电统计接口,添加接口文档并完成接口冒烟测试;
5.长庆演示首页功能开发,新增光伏实时监控统计接口,添加接口文档并完成接口冒烟测试;
6.长庆演示首页功能开发,新增先导实验井间开制度统计接口,添加接口文档并完成接口冒烟测试;
7.长庆演示首页功能开发,新增零碳井场收益分析统计接口,添加接口文档并完成接口冒烟测试;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 71f91dd8
......@@ -13,7 +13,6 @@ import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.client.RestTemplate;
import pps.cloud.base.service.IBaseWeatherCloudService;
import pps.core.base.entity.BasePhotovoltaicPlantView;
import pps.core.base.entity.PlantPredictedPowerDataEnt;
......@@ -31,7 +30,6 @@ import xstartup.base.XStartup;
import xstartup.base.exception.XServiceException;
import xstartup.base.tool.XLoggerTool;
import xstartup.base.util.XCopyUtils;
import xstartup.core.base.helper.XThreadHelper;
import xstartup.data.XServiceResult;
import xstartup.helper.XTransactionHelper;
......@@ -265,17 +263,17 @@ public class BaseWeatherCloudServiceImpl implements IBaseWeatherCloudService {
}
//训练接口http://127.0.0.1:10098/aiprediction/xgbtrain?plantId=018a64635ac47cf58895147b0e1bf7e3
//自动调用预测接口
XThreadHelper.async(() -> {
try {
Thread.sleep(3000);
logger.info("------ weatherDataProcess http prediction plantId: {} ", plantId);
RestTemplate restTemplate = context.getBean(RestTemplate.class);
String forObject = restTemplate.getForObject("http://127.0.0.1:10098/aiprediction/xgbreason?plantId=" + plantId, String.class);
logger.info("------ weatherDataProcess http prediction res: {} ", forObject);
} catch (Exception e) {
logger.error("------ weatherDataProcess Exception", e);
}
});
// XThreadHelper.async(() -> {
// try {
// Thread.sleep(3000);
// logger.info("------ weatherDataProcess http prediction plantId: {} ", plantId);
// RestTemplate restTemplate = context.getBean(RestTemplate.class);
// String forObject = restTemplate.getForObject("http://127.0.0.1:10098/aiprediction/xgbreason?plantId=" + plantId, String.class);
// logger.info("------ weatherDataProcess http prediction res: {} ", forObject);
// } catch (Exception e) {
// logger.error("------ weatherDataProcess Exception", e);
// }
// });
}
}
}
......
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