|
@@ -459,16 +459,17 @@ public class BaiDuDownload {
|
|
|
DataSource ds = new SimpleDataSource("jdbc:mysql://192.168.12.10:23306/mdd"
|
|
|
, "root", "la!yibei82nianxueB");
|
|
|
Connection conn = DbUtil.use(ds).getConnection();
|
|
|
- long time = 1722700800000L;
|
|
|
+ long time = 1716220800000L;
|
|
|
for (long i = time; i <= time; i = i - 86400000) {
|
|
|
for (PowerStation powerStation : list) {
|
|
|
if (!"".equals(powerStation.getLongitude()) && !"".equals(powerStation.getLatitude())) {
|
|
|
- //heFengDownload.download(conn, powerStation.getStationCode(), powerStation.getLongitude(), powerStation.getLatitude());
|
|
|
- //caiYunDownload.download(conn, powerStation.getStationCode(), powerStation.getLongitude(), powerStation.getLatitude());
|
|
|
- //xinZhiDownload.download(conn, powerStation.getStationCode(), powerStation.getLongitude(), powerStation.getLatitude());
|
|
|
download(conn, powerStation.getStationCode(), powerStation.getLongitude(), powerStation.getLatitude(), new Date(i));
|
|
|
}
|
|
|
}
|
|
|
+ if (i == 1577808000000L) {
|
|
|
+ log.info("已经补到2020-01-01的数据,补数结束");
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
} catch (SQLException e) {
|