瀏覽代碼

Merge remote-tracking branch 'origin/dev_v1.0' into dev_v1.0

gufengshou1 1 年之前
父節點
當前提交
dcd13947c6

+ 38 - 0
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/base/AdItemFeature.java

@@ -25,6 +25,7 @@ public class AdItemFeature {
     @Setter
     @NotNull
     private String advertiserCode = "0";
+
     @Setter
     @NotNull
     private String campaignId = "0";
@@ -53,6 +54,43 @@ public class AdItemFeature {
     private AdActionFeature month3_cnt_features;
 
 
+
+    public void setAdId(String key){
+        if(key == null){
+            this.adId = "0";
+        } else {
+            this.adId = key;
+        }
+    }
+
+
+    public void setAdvertiserId(String key){
+        if(key == null){
+            this.advertiserId = "0";
+        } else {
+            this.advertiserId = key;
+        }
+    }
+
+    public void setCampaignId(String key){
+        if(key == null){
+            this.campaignId = "0";
+        } else {
+            this.campaignId = key;
+        }
+    }
+
+
+    public void setCreativeId(String key){
+        if(key == null){
+            this.creativeId = "0";
+        } else {
+            this.creativeId = key;
+        }
+    }
+
+
+
     public void setDay1_cnt_features(AdActionFeature feature) {
         this.day1_cnt_features = feature;
     }