소스 검색

repair bugs

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;