소스 검색

代码合并

syh 4 년 전
부모
커밋
c618c7f60c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceDailyMaterialReportJob.java

+ 3 - 3
module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedanceDailyMaterialReportJob.java

@@ -57,6 +57,9 @@ public class BytedanceDailyMaterialReportJob {
                         bytedanceReportService.bytedanceVideoMaterialReport(token, date2, date2);
                         bytedanceReportService.bytedanceVideoMaterialReport(token, date, date);
                         XxlJobHelper.log("账户"+token.getAccountId() + "素材报表数据任务完成,任务时间:" + date + "~" + date2);
+                        bytedanceReportMaterialDailyMapper.updateImageReportCode(token.getAccountId());
+                        bytedanceReportMaterialDailyMapper.updateImageReportProjectId(token.getAccountId());
+                        bytedanceReportMaterialDailyMapper.updateImageReportProjectName(token.getAccountId());
                     } catch (Exception e) {
                         e.printStackTrace();
                     } finally {
@@ -70,9 +73,6 @@ public class BytedanceDailyMaterialReportJob {
         } catch (InterruptedException e) {
             e.printStackTrace();
         }
-        bytedanceReportMaterialDailyMapper.updateImageReportCode();
-        bytedanceReportMaterialDailyMapper.updateImageReportProjectId();
-        bytedanceReportMaterialDailyMapper.updateImageReportProjectName();
         Long end = System.currentTimeMillis();
         XxlJobHelper.log("头条素材数据获取耗时:{}毫秒", end - start);