sunmingze преди 1 година
родител
ревизия
58983f63c1
променени са 1 файла, в които са добавени 49 реда и са изтрити 0 реда
  1. 49 0
      ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/base/AdActionFeature.java

+ 49 - 0
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/base/AdActionFeature.java

@@ -23,6 +23,55 @@ public class AdActionFeature {
     }
 
 
+    public void setOriginAdView(Object key) {
+        if (key == null) {
+            this.adView = 0.0;
+        } else {
+            String formateKey = key.toString().replace("\\N", "0");
+            this.adView = Double.valueOf(formateKey);
+        }
+    }
+
+    public void setOriginAdClick(Object key) {
+        if (key == null) {
+            this.adClick = 0.0;
+        } else {
+            String formateKey = key.toString().replace("\\N", "0");
+            this.adClick = Double.valueOf(formateKey);
+        }
+    }
+
+    public void setOriginAdConversion(Object key) {
+        if (key == null) {
+            this.adConversion = 0.0;
+        } else {
+            String formateKey = key.toString().replace("\\N", "0");
+            this.adConversion = Double.valueOf(formateKey);
+        }
+    }
+
+    // redis中保存原始值  server段统一处理
+    public void setOriginCtr(Object key) {
+        if (key == null) {
+            this.ctr = 0.0;
+        } else {
+            String formateKey = key.toString().replace("\\N", "0");
+            this.ctr = Double.valueOf(formateKey);
+        }
+    }
+
+    public void setOriginCvr(Object key) {
+        if (key == null) {
+            this.cvr = 0.0;
+        } else {
+            String formateKey = key.toString().replace("\\N", "0");
+            this.cvr = Double.valueOf(formateKey);
+        }
+    }
+
+
+
+
     public void setAdView(Object key) {
         if (key == null) {
             this.adView = 0.0;