Browse Source

添加日志打印

syh 4 years ago
parent
commit
257814bbca

+ 8 - 8
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/ai/service/impl/AiKuaishouCreateCreativeServiceImpl.java

@@ -312,24 +312,24 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
     @Override
     @Override
     public void customCreativeSupplement(AiKuaishouAdvertiserStrategy strategy,Integer hour) throws ParseException {
     public void customCreativeSupplement(AiKuaishouAdvertiserStrategy strategy,Integer hour) throws ParseException {
         Long unitNum = strategy.getCustomUnitCnt()*hour/20;
         Long unitNum = strategy.getCustomUnitCnt()*hour/20;
-        log.info("当前时间内需要创建组总数:{}",unitNum);
+        log.info("{}当前时间内需要创建组总数:{}",strategy.getAccountId(),unitNum);
         //查询当前账户创建自定义类型组数量
         //查询当前账户创建自定义类型组数量
         int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
         int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
-        log.info("截止目前创建组总数:{}",unitCreateCnt);
+        log.info("{}截止目前创建组总数:{}",strategy.getAccountId(),unitCreateCnt);
         long remindCnt = unitNum-unitCreateCnt;
         long remindCnt = unitNum-unitCreateCnt;
         if(remindCnt>=1){
         if(remindCnt>=1){
-            log.info("组创建不足,剩余需要创建个数{},使用历史遗漏素材创建",remindCnt);
+            log.info("{}组创建不足,剩余需要创建个数{},使用历史遗漏素材创建",strategy.getAccountId(),remindCnt);
             //优先创建历史遗漏素材
             //优先创建历史遗漏素材
             remindCnt = this.autoCreateCreative(strategy,3,remindCnt);
             remindCnt = this.autoCreateCreative(strategy,3,remindCnt);
         }
         }
         if(remindCnt>=1){
         if(remindCnt>=1){
-            log.info("组创建不足,剩余需要创建个数{},使用高质量素材创建",remindCnt);
+            log.info("{}组创建不足,剩余需要创建个数{},使用高质量素材创建",strategy.getAccountId(),remindCnt);
             //高质量素材
             //高质量素材
             remindCnt = this.autoCreateCreative(strategy,2,remindCnt);
             remindCnt = this.autoCreateCreative(strategy,2,remindCnt);
         }
         }
         if(remindCnt>=1){
         if(remindCnt>=1){
             //历史打捞素材
             //历史打捞素材
-            log.info("组创建不足,剩余需要创建个数{},使用历史打捞素材创建",remindCnt);
+            log.info("{}组创建不足,剩余需要创建个数{},使用历史打捞素材创建",strategy.getAccountId(),remindCnt);
             this.autoCreateCreative(strategy,4,remindCnt);
             this.autoCreateCreative(strategy,4,remindCnt);
         }
         }
     }
     }
@@ -337,13 +337,13 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
     @Override
     @Override
     public void customCreativeLimit(AiKuaishouAdvertiserStrategy strategy) {
     public void customCreativeLimit(AiKuaishouAdvertiserStrategy strategy) {
         Long unitNum = strategy.getCustomUnitCnt();
         Long unitNum = strategy.getCustomUnitCnt();
-        log.info("当天可创建组总数:{}",unitNum);
+        log.info("{}当天可创建组总数:{}",strategy.getAccountId(),unitNum);
         //查询当前账户创建自定义类型组数量
         //查询当前账户创建自定义类型组数量
         int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
         int unitCreateCnt = groupService.queryToDayBuiltCount(strategy.getAccountId());
-        log.info("截止目前创建组总数:{}",unitCreateCnt);
+        log.info("{}截止目前创建组总数:{}",strategy.getAccountId(),unitCreateCnt);
         long remindCnt = unitNum-unitCreateCnt;
         long remindCnt = unitNum-unitCreateCnt;
         if(remindCnt>=1){
         if(remindCnt>=1){
-            log.info("组创建不足,剩余需要创建个数{},开始上新素材创建",remindCnt);
+            log.info("{}组创建不足,剩余需要创建个数{},开始上新素材创建",strategy.getAccountId(),remindCnt);
             this.autoCreateCreative(strategy,1,remindCnt);
             this.autoCreateCreative(strategy,1,remindCnt);
         }
         }
     }
     }