Authored by hugufei

fix invalid data

@@ -53,10 +53,9 @@ public class SknRecallCacheBean { @@ -53,10 +53,9 @@ public class SknRecallCacheBean {
53 @Autowired 53 @Autowired
54 private SearchRedis searchRedis; 54 private SearchRedis searchRedis;
55 @Autowired 55 @Autowired
56 - private EhCache ehCache;  
57 - @Autowired  
58 private RecallConfigService recallConfigService; 56 private RecallConfigService recallConfigService;
59 - 57 +// @Autowired
  58 +// private EhCache ehCache;
60 59
61 private static final Boolean recallWithCache = true; 60 private static final Boolean recallWithCache = true;
62 61
1 package com.yoho.search.recall.beans.cache; 1 package com.yoho.search.recall.beans.cache;
2 2
3 -import com.alibaba.fastjson.JSON;  
4 -import com.yoho.search.recall.beans.builder.*; 3 +import com.yoho.search.recall.beans.builder.CommonRecallRequestBuilder;
  4 +import com.yoho.search.recall.beans.builder.RecallMergerResultBuilder;
  5 +import com.yoho.search.recall.beans.builder.SortBrandRecallRequestBuilder;
  6 +import com.yoho.search.recall.beans.builder.UserRecallResponseBuilder;
5 import com.yoho.search.recall.beans.persional.QueryUserPersionalFactorBean; 7 import com.yoho.search.recall.beans.persional.QueryUserPersionalFactorBean;
6 import com.yoho.search.recall.beans.strategy.SortBrandType; 8 import com.yoho.search.recall.beans.strategy.SortBrandType;
7 import com.yoho.search.recall.models.common.RecallMergerResult; 9 import com.yoho.search.recall.models.common.RecallMergerResult;
@@ -12,7 +14,10 @@ import org.slf4j.LoggerFactory; @@ -12,7 +14,10 @@ import org.slf4j.LoggerFactory;
12 import org.springframework.beans.factory.annotation.Autowired; 14 import org.springframework.beans.factory.annotation.Autowired;
13 import org.springframework.stereotype.Component; 15 import org.springframework.stereotype.Component;
14 16
15 -import java.util.*; 17 +import java.util.ArrayList;
  18 +import java.util.HashMap;
  19 +import java.util.List;
  20 +import java.util.Map;
16 import java.util.concurrent.CompletableFuture; 21 import java.util.concurrent.CompletableFuture;
17 import java.util.concurrent.ExecutorService; 22 import java.util.concurrent.ExecutorService;
18 import java.util.concurrent.Executors; 23 import java.util.concurrent.Executors;