Authored by hugufei

fix ProductIndexMqListener

1 package com.yoho.search.consumer.index.increment.search_default; 1 package com.yoho.search.consumer.index.increment.search_default;
2 2
3 -import java.util.Arrays;  
4 -import java.util.List;  
5 - 3 +import com.alibaba.fastjson.JSONObject;
  4 +import com.yoho.search.base.utils.EventReportEnum;
  5 +import com.yoho.search.base.utils.ISearchConstants;
  6 +import com.yoho.search.consumer.common.IYohoIndexService;
  7 +import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
6 import com.yoho.search.consumer.index.increment.AbstractMqListener; 8 import com.yoho.search.consumer.index.increment.AbstractMqListener;
  9 +import com.yoho.search.consumer.service.logicService.ProductIndexBOToMapService;
7 import com.yoho.search.core.message.SearchMessageHelper; 10 import com.yoho.search.core.message.SearchMessageHelper;
8 import com.yoho.search.core.message.beans.SearchMqBeansResgister; 11 import com.yoho.search.core.message.beans.SearchMqBeansResgister;
9 import com.yoho.search.core.message.beans.SearchMqConsumerListerner; 12 import com.yoho.search.core.message.beans.SearchMqConsumerListerner;
10 -import org.apache.commons.collections.CollectionUtils;  
11 import org.apache.commons.lang3.StringUtils; 13 import org.apache.commons.lang3.StringUtils;
12 import org.slf4j.Logger; 14 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory; 15 import org.slf4j.LoggerFactory;
14 import org.springframework.beans.factory.annotation.Autowired; 16 import org.springframework.beans.factory.annotation.Autowired;
15 import org.springframework.stereotype.Component; 17 import org.springframework.stereotype.Component;
16 18
17 -import com.alibaba.fastjson.JSONObject;  
18 -import com.yoho.search.base.utils.EventReportEnum;  
19 -import com.yoho.search.base.utils.ISearchConstants;  
20 -import com.yoho.search.consumer.common.IYohoIndexService;  
21 -import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;  
22 -import com.yoho.search.consumer.service.bo.ProductIndexBO;  
23 -import com.yoho.search.consumer.service.logicService.ProductIndexBOToMapService;  
24 -  
25 @Component 19 @Component
26 @SearchMqConsumerListerner(dbName = "search_default",tableName = "productindex") 20 @SearchMqConsumerListerner(dbName = "search_default",tableName = "productindex")
27 public class ProductIndexMqListener extends AbstractMqListener { 21 public class ProductIndexMqListener extends AbstractMqListener {