|
|
@@ -41,7 +41,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
/**
|
|
|
* 50分钟一次
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 0/50 * * * ? ")
|
|
|
+ @Scheduled(cron = "0 0/50x * * * ? ")
|
|
|
public void download1() {
|
|
|
if (ybFixedTime) {
|
|
|
return;
|
|
|
@@ -87,7 +87,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
String fileName = "IMAGE,fyhw," + yearPlist + "_" + monthPlist + "_" + dayPlist + "_" + timePlist + "_" + minutePlist + "_00.JPG";
|
|
|
log.info("fileName:" + fileName);
|
|
|
reader = new BufferedReader(new FileReader(
|
|
|
- "/Users/zhulei/test/test.txt"));
|
|
|
+ duplicateFile));
|
|
|
String line = reader.readLine();
|
|
|
int temp = 0;
|
|
|
while (line != null) {
|
|
|
@@ -150,7 +150,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
String fileName = "IMAGE,fysq," + yearPlist + "_" + monthPlist + "_" + dayPlist + "_" + timePlist + "_" + minutePlist + "_00.JPG";
|
|
|
log.info("fileName:" + fileName);
|
|
|
reader = new BufferedReader(new FileReader(
|
|
|
- "/Users/zhulei/test/test.txt"));
|
|
|
+ duplicateFile));
|
|
|
String line = reader.readLine();
|
|
|
int temp = 0;
|
|
|
while (line != null) {
|
|
|
@@ -213,7 +213,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
String fileName = "IMAGE,fy2g," + yearPlist + "_" + monthPlist + "_" + dayPlist + "_" + timePlist + "_" + minutePlist + "_00.JPG";
|
|
|
log.info("fileName:" + fileName);
|
|
|
reader = new BufferedReader(new FileReader(
|
|
|
- "/Users/zhulei/test/test.txt"));
|
|
|
+ duplicateFile));
|
|
|
String line = reader.readLine();
|
|
|
int temp = 0;
|
|
|
while (line != null) {
|
|
|
@@ -276,7 +276,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
String fileName = "IMAGE,ldpt," + yearPlist + "_" + monthPlist + "_" + dayPlist + "_" + timePlist + "_" + minutePlist + "_00.JPG";
|
|
|
log.info("fileName:" + fileName);
|
|
|
reader = new BufferedReader(new FileReader(
|
|
|
- "/Users/zhulei/test/test.txt"));
|
|
|
+ duplicateFile));
|
|
|
String line = reader.readLine();
|
|
|
int temp = 0;
|
|
|
while (line != null) {
|
|
|
@@ -398,7 +398,7 @@ public class SatelliteRadarImageCollectionTask {
|
|
|
/**
|
|
|
* 0晨6分去重
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 6 0 ?* * ")
|
|
|
+ @Scheduled(cron = "0 6 0 ? * * ")
|
|
|
public void duplicate() {
|
|
|
try {
|
|
|
File file = new File(duplicateFile);
|