yumeng 5 years ago
parent
commit
7a4c8dbc2f

+ 6 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -230,6 +230,7 @@ public class TestController {
                         @Override
                         public void run() {
                             if (!Check.isNull(allocation)) {
+                                log.info("账号id:{}", allocation.getAccountId());
 
                                 QueryWrapper<CtopOauthToken> oauthTokenQueryWrapper = new QueryWrapper<>();
                                 oauthTokenQueryWrapper.eq("media_id", 2);
@@ -238,18 +239,22 @@ public class TestController {
                                 if (!Check.isNull(ctopOauthToken)) {
                                     deleteMap.put("account_id", allocation.getAccountId());
                                     deleteMap.put("stat_date", anotherDay);
-                                 //   reportDailyCreativeStatisticMapper.deleteByMap(deleteMap);
+                                    //   reportDailyCreativeStatisticMapper.deleteByMap(deleteMap);
                                     //  reportDailyCreativeMapper.deleteByMap(deleteMap);
 
                                     // 1.计划数据
+                                    log.info("获取计划,账号id:{}", allocation.getAccountId());
                                     kuaishouInterfaceService.getCampaignList(ctopOauthToken, null, null);
                                     // 2:广告组数据
+                                    log.info("获取广告组,账号id:{}", allocation.getAccountId());
                                     kuaishouInterfaceService.getGroupList(ctopOauthToken, null, null);
                                     // 3:创意数据
+                                    log.info("获取创意,账号id:{}", allocation.getAccountId());
                                     kuaishouInterfaceService.getCreativeList(ctopOauthToken, null, null);
 
                                     QueryWrapper<KuaiShouCampaign> campaignQueryWrapper = new QueryWrapper<>();
                                     campaignQueryWrapper.eq("account_id", ctopOauthToken.getAccountId());
+                                    log.info("获取创意报表,账号id:{}", allocation.getAccountId());
                                     List<KuaiShouCampaign> campaigns = campaignService.list(campaignQueryWrapper);
                                     if (!Check.isNull(list)) {
                                         for (KuaiShouCampaign campaign : campaigns) {