|
|
@@ -65,18 +65,43 @@ public class QxybDataCollectionTask implements InitializingBean {
|
|
|
return;
|
|
|
}
|
|
|
log.info("开始下载:{}到{}的预报数据.", this.getYbStartTime(), this.getYbEndTime());
|
|
|
- //下载分区雨量
|
|
|
- this.getForecast15Data();
|
|
|
|
|
|
- this.getForecast29Data();
|
|
|
+ try {
|
|
|
+ //下载分区雨量
|
|
|
+ this.getForecast15Data();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
|
|
|
- this.getDomainTempAndRain();
|
|
|
+ try {
|
|
|
+ this.getForecast29Data();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
|
|
|
- //获取网格数据,包含温度网格,降雨网格
|
|
|
- this.getGridData();
|
|
|
+ try {
|
|
|
+ this.getDomainTempAndRain();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
|
|
|
- //下载温度站点
|
|
|
- this.getForeTempData();
|
|
|
+ try {
|
|
|
+ //获取网格数据,包含温度网格,降雨网格
|
|
|
+ this.getGridData();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ //下载温度站点
|
|
|
+ this.getForeTempData();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error(e.getMessage());
|
|
|
+ }
|
|
|
log.info("结束下载:{}到{}的预报数据.", this.getYbStartTime(), this.getYbEndTime());
|
|
|
}
|
|
|
|