Przeglądaj źródła

fix 任务时间

zhaotx 1 rok temu
rodzic
commit
be1c7d79a1

+ 5 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/CPSReportJob.java

@@ -56,7 +56,11 @@ public class CPSReportJob {
     public void runCPSIapSettlementData() throws Exception {
         log.info("[runCPSIapSettlementData] 任务启动...");
         try {
-            String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
+            String nowDate = DateUtils.getNowAddDate("yyyy-MM-dd", -1);
+            cpsReportService.runCPSSettlementData(nowDate);
+            nowDate = DateUtils.getNowAddDate("yyyy-MM-dd", -2);
+            cpsReportService.runCPSSettlementData(nowDate);
+            nowDate = DateUtils.getNowAddDate("yyyy-MM-dd", -3);
             cpsReportService.runCPSSettlementData(nowDate);
             log.info("[runCPSIapSettlementData] 任务完成");
         } catch (Exception e) {