Commit 6e737d4c authored by ZWT's avatar ZWT

Merge remote-tracking branch 'origin/master'

parents f910f0c6 7047daee
...@@ -44,7 +44,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService { ...@@ -44,7 +44,7 @@ public class BaseWatherCloudServiceImpl implements BaseWatherCloudService {
String provinceCode = pro[0];//省编码 String provinceCode = pro[0];//省编码
String provinceName = pro[1];//省名称 String provinceName = pro[1];//省名称
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市) //甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
if (provinceCode.equals("AGS") || provinceCode.equals("ASN")) { if (provinceCode.equals("AJL")) {
//请求省份下的区信息 //请求省份下的区信息
String cityString = HttpUtils.send2(cityUrl+provinceCode , ""); String cityString = HttpUtils.send2(cityUrl+provinceCode , "");
//解析区json,把字符串解析成json对象 //解析区json,把字符串解析成json对象
......
...@@ -46,7 +46,7 @@ public class BaseWatherService { ...@@ -46,7 +46,7 @@ public class BaseWatherService {
String provinceCode = pro[0];//省编码 String provinceCode = pro[0];//省编码
String provinceName = pro[1];//省名称 String provinceName = pro[1];//省名称
//甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市) //甘肃 .陕西 (全国周期抓取耗费时间超长,共有2400个城市)
if (provinceCode.equals("AGS") || provinceCode.equals("ASN")) { if (provinceCode.equals("AJL")) {
//请求省份下的区信息 //请求省份下的区信息
String cityString = HttpUtils.send2(cityUrl+provinceCode , ""); String cityString = HttpUtils.send2(cityUrl+provinceCode , "");
//解析区json,把字符串解析成json对象 //解析区json,把字符串解析成json对象
......
...@@ -13,7 +13,7 @@ import xstartup.service.job.annotation.XCronTrigger; ...@@ -13,7 +13,7 @@ import xstartup.service.job.annotation.XCronTrigger;
@XText("天气数据,每8小时执行一次") @XText("天气数据,每8小时执行一次")
@XService @XService
public class WeatherJob implements XJob { public class WeatherJob implements XJob {
@XCronTrigger(value = "0 0 0/8 * * ?") @XCronTrigger(value = "0 0 0/4 * * ?")
@Override @Override
public XServiceResult execute(XContext context) { public XServiceResult execute(XContext context) {
BaseWatherCloudService cloudService = context.getBean(BaseWatherCloudService.class); BaseWatherCloudService cloudService = context.getBean(BaseWatherCloudService.class);
......
package pps.core.prediction.service; package pps.core.prediction.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import pps.cloud.base.service.data.GetBasePowerLineInput;
import pps.cloud.base.service.data.GetBasePowerLineViewOutput;
import pps.core.prediction.entity.BaseDataEnt; import pps.core.prediction.entity.BaseDataEnt;
import pps.core.prediction.entity.BaseDataView; import pps.core.prediction.entity.BaseDataView;
import pps.core.prediction.mapper.BaseDataMapper; import pps.core.prediction.mapper.BaseDataMapper;
......
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