Parcourir la source

Merge #85 into master from pingkang

feat: 字节跳动推广报表增加抖音号信息

* pingkang: (1 commits)
  feat: 字节跳动推广报表增加抖音号信息

Signed-off-by: 黄平康 <accounts_6361eaad7b63b44dd7833e63@mail.teambition.com>
Merged-by: 黄平康 <accounts_6361eaad7b63b44dd7833e63@mail.teambition.com>

CR-link: https://codeup.aliyun.com/60c06368dbbed34fe0f0c263/job/hr_job-bytedance/change/85
huangpingkang il y a 7 mois
Parent
commit
2c09011034

+ 17 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/entity/BytedancePromoterReportDaily.java

@@ -144,6 +144,23 @@ public class BytedancePromoterReportDaily {
     private BigDecimal attributionMicroGame7dLtv;
     private BigDecimal statMicroGame0dAmount;
 
+    private String awemeId;
+    private String awemeNickName;
+
+    public String getAwemeId() {
+        return awemeId;
+    }
+
+    public void setAwemeId(String awemeId) {
+        this.awemeId = awemeId;
+    }
+
+    public String getAwemeNickName() {
+        return awemeNickName;
+    }
+    public void setAwemeNickName(String awemeNickName) {
+        this.awemeNickName = awemeNickName;
+    }
     public Long getAdvertiserId() {
         return advertiserId;
     }

+ 17 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/entity/BytedancePromoterReportHour.java

@@ -149,7 +149,24 @@ public class BytedancePromoterReportHour {
     private BigDecimal attributionMicroGame3dLtv;
     private BigDecimal attributionMicroGame7dLtv;
     private BigDecimal statMicroGame0dAmount;
+    private String awemeId;
+    private String awemeNickName;
 
+    public String getAwemeId() {
+        return awemeId;
+    }
+
+    public void setAwemeId(String awemeId) {
+        this.awemeId = awemeId;
+    }
+
+    public String getAwemeNickName() {
+        return awemeNickName;
+    }
+
+    public void setAwemeNickName(String awemeNickName) {
+        this.awemeNickName = awemeNickName;
+    }
 
     public Long getAdvertiserId() {
         return advertiserId;

+ 16 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/service/impl/BytedancePromoterReportServiceImpl.java

@@ -89,6 +89,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             String cdpProjectName = dimensionsJson.getString("cdp_project_name");
                             Long cdpPromotionId = dimensionsJson.getLong("cdp_promotion_id");
                             String cdpPromotionName = dimensionsJson.getString("cdp_promotion_name");
+                            String awemeId = dimensionsJson.getString("aweme_id");
+                            String awemeNickName = dimensionsJson.getString("aweme_nick_name");
                             Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
                             Integer hour = Integer.valueOf(dimensionsJson.getString("stat_time_hour").substring(11, 13));
                             BytedancePromoterReportHour bytedancePromoterReportHour = JSONObject.parseObject(metricsJson.toJSONString(), BytedancePromoterReportHour.class);
@@ -99,6 +101,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             bytedancePromoterReportHour.setCdpPromotionName(cdpPromotionName);
                             bytedancePromoterReportHour.setStatTimeDay(statTimeDay);
                             bytedancePromoterReportHour.setHour(hour);
+                            bytedancePromoterReportHour.setAwemeId(awemeId);
+                            bytedancePromoterReportHour.setAwemeNickName(awemeNickName);
                             hours.add(bytedancePromoterReportHour);
 
                             dorisLoadManager.add("media_api","bytedance_promoter_report_hour", bytedancePromoterReportHour);
@@ -178,6 +182,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             String cdpProjectName = dimensionsJson.getString("cdp_project_name");
                             Long cdpPromotionId = dimensionsJson.getLong("cdp_promotion_id");
                             String cdpPromotionName = dimensionsJson.getString("cdp_promotion_name");
+                            String awemeId = dimensionsJson.getString("aweme_id");
+                            String awemeNickName = dimensionsJson.getString("aweme_nick_name");
                             Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
                             BytedancePromoterReportDaily promoterReportDaily = JSONObject.parseObject(metricsJson.toJSONString(), BytedancePromoterReportDaily.class);
                             promoterReportDaily.setAdvertiserId(advertiserId);
@@ -186,6 +192,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             promoterReportDaily.setCdpPromotionId(cdpPromotionId);
                             promoterReportDaily.setCdpPromotionName(cdpPromotionName);
                             promoterReportDaily.setStatTimeDay(statTimeDay);
+                            promoterReportDaily.setAwemeId(awemeId);
+                            promoterReportDaily.setAwemeNickName(awemeNickName);
                             promoterReportDailies.add(promoterReportDaily);
                             dorisLoadManager.add("media_api", "bytedance_promoter_report_daily", promoterReportDaily);
                         }
@@ -275,6 +283,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             String cdpProjectName = dimensionsJson.getString("cdp_project_name");
                             Long cdpPromotionId = dimensionsJson.getLong("cdp_promotion_id");
                             String cdpPromotionName = dimensionsJson.getString("cdp_promotion_name");
+                            String awemeId = dimensionsJson.getString("aweme_id");
+                            String awemeNickName = dimensionsJson.getString("aweme_nick_name");
                             Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
                             Integer hour = Integer.valueOf(dimensionsJson.getString("stat_time_hour").substring(11, 13));
                             BytedancePromoterReportHour bytedancePromoterReportHour = JSONObject.parseObject(metricsJson.toJSONString(), BytedancePromoterReportHour.class);
@@ -285,8 +295,9 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             bytedancePromoterReportHour.setCdpPromotionName(cdpPromotionName);
                             bytedancePromoterReportHour.setStatTimeDay(statTimeDay);
                             bytedancePromoterReportHour.setHour(hour);
+                            bytedancePromoterReportHour.setAwemeId(awemeId);
+                            bytedancePromoterReportHour.setAwemeNickName(awemeNickName);
                             hours.add(bytedancePromoterReportHour);
-
                             dorisLoadManager.add("media_api","bytedance_promoter_report_hour", bytedancePromoterReportHour);
                         }
                     }
@@ -377,6 +388,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             String cdpProjectName = dimensionsJson.getString("cdp_project_name");
                             Long cdpPromotionId = dimensionsJson.getLong("cdp_promotion_id");
                             String cdpPromotionName = dimensionsJson.getString("cdp_promotion_name");
+                            String awemeId = dimensionsJson.getString("aweme_id");
+                            String awemeNickName = dimensionsJson.getString("aweme_nick_name");
                             Integer statTimeDay = Integer.valueOf(dimensionsJson.getString("stat_time_day").replace("-", ""));
                             BytedancePromoterReportDaily promoterReportDaily = JSONObject.parseObject(metricsJson.toJSONString(), BytedancePromoterReportDaily.class);
                             promoterReportDaily.setAdvertiserId(advertiserId);
@@ -385,6 +398,8 @@ public class BytedancePromoterReportServiceImpl implements IBytedancePromoterRep
                             promoterReportDaily.setCdpPromotionId(cdpPromotionId);
                             promoterReportDaily.setCdpPromotionName(cdpPromotionName);
                             promoterReportDaily.setStatTimeDay(statTimeDay);
+                            promoterReportDaily.setAwemeId(awemeId);
+                            promoterReportDaily.setAwemeNickName(awemeNickName);
                             promoterReportDailies.add(promoterReportDaily);
 
                             dorisLoadManager.add("media_api", "bytedance_promoter_report_daily", promoterReportDaily);

+ 4 - 0
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/utils/FieldsConfig.java

@@ -29,6 +29,8 @@ public class FieldsConfig {
         hourDimensions.add("cdp_project_name");
         hourDimensions.add("cdp_promotion_id");
         hourDimensions.add("cdp_promotion_name");
+        hourDimensions.add("aweme_id");
+        hourDimensions.add("aweme_nick_name");
         return hourDimensions;
 
     }
@@ -40,6 +42,8 @@ public class FieldsConfig {
         hourDimensions.add("cdp_project_name");
         hourDimensions.add("cdp_promotion_id");
         hourDimensions.add("cdp_promotion_name");
+        hourDimensions.add("aweme_id");
+        hourDimensions.add("aweme_nick_name");
         return hourDimensions;
 
     }