...
|
...
|
@@ -19,8 +19,6 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.amqp.core.Message;
|
|
|
import org.springframework.amqp.rabbit.core.ChannelAwareMessageListener;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.ApplicationEventPublisher;
|
|
|
import org.springframework.context.ApplicationEventPublisherAware;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
...
|
...
|
@@ -32,7 +30,7 @@ import java.util.Map; |
|
|
* Created by wangnan on 2016/11/24.
|
|
|
*/
|
|
|
@Component
|
|
|
public class ProductTimingMqListener extends AbstractMqListener implements ChannelAwareMessageListener, ApplicationEventPublisherAware {
|
|
|
public class ProductTimingMqListener extends AbstractMqListener implements ChannelAwareMessageListener{
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(ProductTimingMqListener.class);
|
|
|
|
...
|
...
|
@@ -45,11 +43,10 @@ public class ProductTimingMqListener extends AbstractMqListener implements Chann |
|
|
@Autowired
|
|
|
private StorageUpdateTimeLogicService storageUpdateTimeLogicService;
|
|
|
|
|
|
protected ApplicationEventPublisher publisher;
|
|
|
|
|
|
@Override
|
|
|
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
|
|
|
this.publisher = applicationEventPublisher;
|
|
|
public String getIndexName() {
|
|
|
return ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -121,8 +118,4 @@ public class ProductTimingMqListener extends AbstractMqListener implements Chann |
|
|
this.updateProductIndexWithDataMap(indexData, productId, null, begin);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public String getIndexName() {
|
|
|
return ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
|
|
|
}
|
|
|
} |
...
|
...
|
|