소스 검색

promotion daily

hpk 1 년 전
부모
커밋
e3f8795a90
1개의 변경된 파일과 15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      job-bytedance/src/main/java/cn/com/ctop/job/bytedance/controller/BytedanceController.java

+ 15 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/controller/BytedanceController.java

@@ -311,6 +311,21 @@ public class BytedanceController {
         }
         }
     }
     }
 
 
+    @GetMapping("/promoterDaily")
+    public void promoterDaily(@RequestParam(required = false) Long advertiserId, String startDate, String endDate) {
+        List<JSONObject> costAccount = productReportService.getCostAccount(advertiserId, startDate, endDate);
+        for (JSONObject jsonObject : costAccount) {
+            executor10Service1.submit(() -> {
+                Long adverId = jsonObject.getLong("advertiserId");
+                String accessToken = jsonObject.getString("accessToken");
+                promoterReportService.getBytedancePromoterDaily(adverId, accessToken, startDate, endDate, 1, 1);
+            });
+        }
+    }
+
+
+
+
 
 
     @GetMapping("/getWxAppInfo")
     @GetMapping("/getWxAppInfo")
     public void getWxAppInfo(Long advertiserId) {
     public void getWxAppInfo(Long advertiserId) {