Authored by 胡古飞

先去除两个队列的更新

... ... @@ -43,7 +43,7 @@ public class ProductPricePlanMqListener extends AbstractMqListener implements Ch
if (StringUtils.isBlank(idField)) {
throw new Exception("idField is empty,indexName is " + getIndexName());
}
process(this, message);
//process(this, message);
} catch (Exception e) {
publisher.publishEvent(buildSearchEvent(EventReportEnum.PRODUCTPRICEPLANMQLISTENER_ONMESSAGE,e));
Thread.sleep(1000);
... ...
package com.yoho.search.consumer.index.increment.productIndex;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
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.stereotype.Component;
import com.rabbitmq.client.Channel;
import com.yoho.search.base.utils.ConvertUtils;
import com.yoho.search.base.utils.EventReportEnum;
... ... @@ -11,19 +25,6 @@ import com.yoho.search.consumer.service.logic.productIndex.StorageUpdateTimeLogi
import com.yoho.search.dal.model.Product;
import com.yoho.search.dal.model.Storage;
import com.yoho.search.dal.model.StorageUpdateTime;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
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.stereotype.Component;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Component
public class StorageMqListener extends AbstractStorageRelatedMqListener implements ChannelAwareMessageListener {
... ... @@ -44,7 +45,7 @@ public class StorageMqListener extends AbstractStorageRelatedMqListener implemen
@Override
public void onMessage(Message message, Channel channel) throws Exception {
try {
process(this, message);
//process(this, message);
} catch (Exception e) {
publisher.publishEvent(buildSearchEvent(EventReportEnum.STORAGEMQLISTENER_ONMESSAGE,e));
Thread.sleep(1000);
... ...