Commit 686ff1ab authored by tianchao's avatar tianchao

1增加自动调用预测接口

parent dbb75b17
......@@ -18,6 +18,7 @@ import pps.core.base.mapper.BasePhotovoltaicPlantViewMapper;
import pps.core.base.mapper.PlantPredictedPowerDataMapper;
import pps.core.base.mapper.WeatherDataMapper;
import pps.core.base.utils.HttpUtils;
import pps.core.common.constant.BusinessConstant;
import pps.core.common.utils.DateUtil;
import xstartup.annotation.XService;
import xstartup.base.XContext;
......@@ -50,7 +51,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService {
//1.获取电站数据,并根据电站数据,获取到电站所在城市,然后获取到天气数据
BasePhotovoltaicPlantViewMapper mapper = context.getBean(BasePhotovoltaicPlantViewMapper.class);
BasePhotovoltaicPlantView view = new BasePhotovoltaicPlantView();
view.setIsDeleted(ScadaConstant.IS_DELETE_FLASE);
view.setIsDeleted(BusinessConstant.ONE);
List<BasePhotovoltaicPlantView> plantList = mapper.selectPlantDetailList(view);
for(BasePhotovoltaicPlantView item : plantList){
if(XStringUtils.isNotEmpty(item.getCityCode()) && XStringUtils.isNotEmpty(item.getProvinceCode())){
......
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