Browse Source

补充日志说明

zhaoxian 4 years ago
parent
commit
a676dd4593

+ 4 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaishouZombieCreativeServiceImpl.java

@@ -100,6 +100,8 @@ public class KuaishouZombieCreativeServiceImpl extends ServiceImpl<KuaishouZombi
             List<KuaishouZombieCreative> zombiePlans = new ArrayList<>();
             List<JSONObject> zombieList = new ArrayList<>();
             //通过账户和创意ID,筛选出确认的僵尸计划账户
+            long tims = System.currentTimeMillis();
+            log.info("-----获取数据集---------用时:{} ms", tims - startTime);
             zombieCreatives.forEach(zombie -> {
                 list.forEach(obj -> {
                     if (zombie.getAccountId() - obj.getInteger("accountId") == 0 && zombie.getCreativeId() - obj.getInteger("creativeId") == 0) {
@@ -135,6 +137,7 @@ public class KuaishouZombieCreativeServiceImpl extends ServiceImpl<KuaishouZombi
                     }
                 });
             });
+            log.info("-----筛选逻辑---------用时:{} ms", System.currentTimeMillis() - tims);
             //过滤掉已确认的僵尸数据,剩余活跃的计划
             zombieCreatives.removeAll(zombiePlans);
             //更新计划状态为已活跃
@@ -152,7 +155,7 @@ public class KuaishouZombieCreativeServiceImpl extends ServiceImpl<KuaishouZombi
             insertorUpdate(list);
         }
         long endTime = System.currentTimeMillis();
-        log.info("---end---僵尸计划判断用时:{} ms", endTime - startTime);
+        log.info("---end---用时:{} ms", endTime - startTime);
     }
 
     /**