|
@@ -113,8 +113,13 @@ public abstract class AbstractMessageListener implements MessageListener {
|
|
|
logger.info("更新消费者数据: " + ObjectUtils.objectParseJsonStr(oldConsumerEntity));
|
|
|
action = consume0(messageModel, consumeContext);
|
|
|
|
|
|
- oldConsumerEntity.setConsumerStatus(1);
|
|
|
- consumerDao.updateById(oldConsumerEntity);
|
|
|
+ if (Action.ReconsumeLater.equals(action)) {
|
|
|
+ oldConsumerEntity.setConsumerStatus(-1);
|
|
|
+ consumerDao.updateById(oldConsumerEntity);
|
|
|
+ } else {
|
|
|
+ oldConsumerEntity.setConsumerStatus(1);
|
|
|
+ consumerDao.updateById(oldConsumerEntity);
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
logger.debug("消息处理异常 : " + action);
|
|
|
e.printStackTrace();
|