|
@@ -31,8 +31,6 @@ public class KuaishouDailyLoadFileJob implements Job {
|
|
|
static CountDownLatch countDownLatch = null;
|
|
|
@Autowired
|
|
|
private IKuaiShouDailyReportTaskService dailyReportTaskService;
|
|
|
- @Autowired
|
|
|
- private IKuaiShouDailyReportTaskService kuaiShouDailyReportTaskService;
|
|
|
|
|
|
@Override
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
@@ -63,16 +61,18 @@ public class KuaishouDailyLoadFileJob implements Job {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- try {
|
|
|
- countDownLatch.await();
|
|
|
- } catch (InterruptedException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- kuaiShouDailyReportTaskService.formatCreativeDailyReportData(null, statDate);
|
|
|
executorService.shutdown();
|
|
|
}
|
|
|
};
|
|
|
thread.start();
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public static void main(String[] args) {
|
|
|
+ String nowDate = DateUtils.getDate("yyyy-MM-dd");
|
|
|
+ String statDate = getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+
|
|
|
+ System.err.println(statDate);
|
|
|
+ }
|
|
|
}
|