浏览代码

video feature extractor

sunmingze 1 年之前
父节点
当前提交
62b2fef43a

+ 9 - 1
recommend-feature-client/src/main/java/com/tzld/piaoquan/recommend/feature/domain/video/base/UserFeature.java

@@ -10,6 +10,7 @@ import lombok.NoArgsConstructor;
 public class UserFeature {
 
     private String uid = "0";
+    private String mid = "0";
     // 当天统计量信息
     private UserActionFeature day1_cnt_features;
     // 3天内统计量
@@ -29,6 +30,13 @@ public class UserFeature {
             this.uid = "0";
     }
 
+    public void setMid(String key) {
+        this.uid = key;
+        if (key == null)
+            this.uid = "0";
+    }
+
+
 
     public void setDay1_cnt_features(UserActionFeature key) {
         this.day1_cnt_features = key;
@@ -75,7 +83,7 @@ public class UserFeature {
 
 
     public String getKey() {
-        return this.uid;
+        return this.mid;
     }
 
     public String getValue() {