Browse Source

ad_redis_feature_structure_repair_20231222

sunmingze 1 year ago
parent
commit
f28cab6108

+ 4 - 3
recommend-feature-service/src/main/java/com/tzld/piaoquan/recommend/feature/model/AdActionFeature.java

@@ -16,13 +16,14 @@ public class AdActionFeature {
     }
 
     private double bucketRatioFeature(Double key) {
-        long bucket = Math.round(Math.log((key + 1) * 1000));
-        if (bucket > 1000)
-            bucket = 1000;
+        long bucket = Math.round(Math.log((key + 1) * 50));
+        if (bucket > 50)
+            bucket = 50;
         return (double) bucket;
     }
 
 
+
     public void setOriginAdView(Object key) {
         if (key == null) {
             this.adView = 0.0;

+ 0 - 49
recommend-feature-service/src/main/java/com/tzld/piaoquan/recommend/feature/model/UserAdFeature.java

@@ -16,55 +16,6 @@ public class UserAdFeature {
 
     private String mid = "0";
 
-    private String gender = "0";
-
-    private String user_type = "0";
-
-    private String gmt_create = "0";
-
-    private String tags = "0";
-
-    private String category_name = "0";
-
-    private String isvip = "0";
-
-    private String isreward = "0";
-
-    private String isad = "0";
-
-    private String isgood = "0";
-
-    private String first_up_datetime = "0";
-    private String last_up_datetime = "0";
-    private String next_to_last_up_datetime = "0";
-    private String videos = "0"; // 上传视频数量
-    private String idols = "0"; // 关注人数
-    private String fans = "0";  // 粉丝数
-    private String play_count = "0";  // 播放人数
-    private String play_count_total = "0";  // 累计播放次数
-
-    private String total_reward = "0";
-    private String currentday_reward = "0";
-    private String reward_person = "0";
-    private String total_reward_times = "0";
-
-    private String reward_videos = "0";
-    private String total_price = "0";
-    private String currentday_price = "0";
-    private String total_price_times = "0";
-    private String total_price_person = "0";
-    private String total_price_videos = "0";
-    private String cgrain_user_type = "0";
-    private String identity_tagname = "0";
-
-
-    private String operation_tags = "0";
-    private String identity_tag_id = "0";
-    private String identity_create_time = "0";
-    private String country = "0";
-    private String province = "0";
-    private String city = "0";
-
 
     // 当天统计量信息
     private AdActionFeature day1_cnt_features;