yumeng пре 8 месеци
родитељ
комит
9752a21c4e

+ 1 - 1
job-adq/src/main/java/cn/com/ctop/job/adq/controller/AdqController.java

@@ -53,7 +53,7 @@ public class AdqController {
 
 
     @GetMapping("/getBalanceReport")
-    public JSONObject getBalanceReport() {
+    public JSONObject getBalanceReport() throws InterruptedException {
 
         dailyBalanceReportService.getAdqBalanceReport(56298095L, "a501cb39b83bd0dabe37c1a325f99e03", "2025-09-09", "2025-09-11", 1, 1L);
 

+ 5 - 1
job-adq/src/main/java/cn/com/ctop/job/adq/controller/HistoryController.java

@@ -52,7 +52,11 @@ public class HistoryController {
                 }
                 accountReportService.getAdqAccountDaily(advertiserId, token, startDate, endDate, 1, 1);
                 adqReportService.getAdqCreativeDaily(advertiserId, token, startDate, endDate, 1, 1);
-                dailyBalanceReportService.getAdqBalanceReport(advertiserId, token, startDate, endDate, 1, null);
+                try {
+                    dailyBalanceReportService.getAdqBalanceReport(advertiserId, token, startDate, endDate, 1, null);
+                } catch (InterruptedException e) {
+                    throw new RuntimeException(e);
+                }
             }
         });
         json.put("code", 200);

+ 5 - 1
job-adq/src/main/java/cn/com/ctop/job/adq/handler/AdqAccountReportJob.java

@@ -195,7 +195,11 @@ public class AdqAccountReportJob {
         balanceExecutorService.submit(new Runnable() {
             @Override
             public void run() {
-                dailyBalanceReportService.getAdqBalanceReport(advertiserId, accessToken, yesDate, yesDate, 1, null);
+                try {
+                    dailyBalanceReportService.getAdqBalanceReport(advertiserId, accessToken, yesDate, yesDate, 1, null);
+                } catch (InterruptedException e) {
+                    throw new RuntimeException(e);
+                }
             }
         });
     }

+ 5 - 1
job-adq/src/main/java/cn/com/ctop/job/adq/handler/AdqRetryReportJob.java

@@ -171,7 +171,11 @@ public class AdqRetryReportJob {
                         @Override
                         public void run() {
                             if (!Check.isNull(accessToken)) {
-                                dailyBalanceReportService.getAdqBalanceReport(advertiserId, accessToken, startDate, endDate, 1, null);
+                                try {
+                                    dailyBalanceReportService.getAdqBalanceReport(advertiserId, accessToken, startDate, endDate, 1, null);
+                                } catch (InterruptedException e) {
+                                    throw new RuntimeException(e);
+                                }
                             }
                         }
                     });