|
|
@@ -49,17 +49,19 @@ public class BytedanceController {
|
|
|
@Autowired
|
|
|
private IBytedanceMiniAppService bytedanceMiniAppService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IBytedanceCdpProjectService cdpProjectService;
|
|
|
|
|
|
@GetMapping("/accountReport")
|
|
|
- public void getChannel(String param) {
|
|
|
+ public void getChannel() {
|
|
|
+
|
|
|
+ List<JSONObject> infos = adminAdvertiserListService.getAdvertiserInfosByAdminIds();
|
|
|
+
|
|
|
|
|
|
- List<JSONObject> infos = adminAdvertiserListService.getAdvertiserInfos();
|
|
|
- System.err.println(infos);
|
|
|
- adminAdvertiserListService.batchUpdateAdvertiserName(infos);
|
|
|
|
|
|
- /* List<JSONObject> allList = promoterReportService.getAllList();
|
|
|
- for (int i = 0; i < allList.size(); i++) {
|
|
|
- JSONObject jsonObject = allList.get(i);
|
|
|
+
|
|
|
+ for (int i = 0; i < infos.size(); i++) {
|
|
|
+ JSONObject jsonObject = infos.get(i);
|
|
|
Long advertiserId = jsonObject.getLong("advertiserId");
|
|
|
String accessToken = jsonObject.getString("accessToken");
|
|
|
|
|
|
@@ -67,15 +69,19 @@ public class BytedanceController {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
if (!Check.isNull(accessToken)) {
|
|
|
- accountReportService.getBytedanceAccountDaily(advertiserId, accessToken, "2025-01-01", "2025-03-25", 1, 1);
|
|
|
- // accountReportService.getBytedanceAccountHour(advertiserId, accessToken, "2025-01-01", "2025-03-25", 1, 1);
|
|
|
- // promoterReportService.getBytedancePromoterHour(advertiserId, accessToken, "2025-01-01", "2025-03-25", 1, 1);
|
|
|
- promoterReportService.getBytedancePromoterDaily(advertiserId, accessToken, "2025-01-01", "2025-03-25", 1, 1);
|
|
|
+
|
|
|
+ /*cdpProjectService.getProjectList(advertiserId, null);
|
|
|
+ cdpProjectService.getpromotionList(advertiserId, null);*/
|
|
|
+
|
|
|
+ // accountReportService.getBytedanceAccountDaily(advertiserId,accessToken,"2025-06-01","2025-06-03",1,1);
|
|
|
+ promoterReportService.getBytedancePromoterDaily(advertiserId,accessToken,"2025-06-01","2025-06-03",1,1);
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|