浏览代码

up uid -> mid

丁云鹏 1 年之前
父节点
当前提交
c313ddeb03

+ 16 - 15
recommend-feature-service/src/main/java/com/tzld/piaoquan/recommend/feature/model/UserFeature.java

@@ -8,6 +8,7 @@ import lombok.Data;
 @Data
 public class UserFeature {
     private String uid;
+    private String mid;
     // 当天统计量信息
     private UserActionFeature day1_cnt_features;
     // 3天内统计量
@@ -21,53 +22,53 @@ public class UserFeature {
     private String user_cycle_bucket_30days;
     private String user_share_bucket_30days;
 
-    public void setUid(String key){
+    public void setMid(String key) {
         this.uid = key;
-        if(key == null)
+        if (key == null)
             this.uid = "0";
     }
 
 
-    public void setDay1_cnt_features(UserActionFeature key){
+    public void setDay1_cnt_features(UserActionFeature key) {
         this.day1_cnt_features = key;
-        if(key == null)
+        if (key == null)
             this.day1_cnt_features = new UserActionFeature();
     }
 
-    public void setDay3_cnt_features(UserActionFeature key){
+    public void setDay3_cnt_features(UserActionFeature key) {
         this.day3_cnt_features = key;
-        if(key == null)
+        if (key == null)
             this.day3_cnt_features = new UserActionFeature();
     }
 
-    public void setDay7_cnt_features(UserActionFeature key){
+    public void setDay7_cnt_features(UserActionFeature key) {
         this.day7_cnt_features = key;
-        if(key == null)
+        if (key == null)
             this.day7_cnt_features = new UserActionFeature();
     }
 
     public void setMonth3_cnt_features(UserActionFeature key) {
         this.month3_cnt_features = key;
-        if(key == null)
+        if (key == null)
             this.month3_cnt_features = new UserActionFeature();
     }
 
 
-    public void setUser_cycle_bucket_7days(String key){
+    public void setUser_cycle_bucket_7days(String key) {
         this.user_cycle_bucket_7days = key;
-        if(key == null)
+        if (key == null)
             this.user_cycle_bucket_7days = "0";
     }
 
-    public void setUser_cycle_bucket_30days(String key){
+    public void setUser_cycle_bucket_30days(String key) {
         this.user_cycle_bucket_30days = key;
-        if(key == null)
+        if (key == null)
             this.user_cycle_bucket_30days = "0";
     }
 
-    public void setUser_share_bucket_30days(String key){
+    public void setUser_share_bucket_30days(String key) {
         this.user_share_bucket_30days = key;
-        if(key == null)
+        if (key == null)
             this.user_share_bucket_30days = "0";
     }