bug fix
This commit is contained in:
@@ -2,7 +2,7 @@ package com.peanut.modules.mq.Consumer;
|
||||
|
||||
import com.peanut.config.Constants;
|
||||
import com.peanut.config.DelayQueueConfig;
|
||||
import com.peanut.modules.book.entity.BuyOrderEntity;
|
||||
import com.peanut.modules.book.entity.BuyOrder;
|
||||
import com.peanut.modules.book.service.BuyOrderService;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -21,7 +21,7 @@ public class OrderCancelConsumer {
|
||||
|
||||
@RabbitListener(queues = DelayQueueConfig.ORDER_CANCEL_DEAD_LETTER_QUEUE)
|
||||
public void orderConsumer(String orderId) {
|
||||
BuyOrderEntity buyOrder = buyOrderService.getById(orderId);
|
||||
BuyOrder buyOrder = buyOrderService.getById(orderId);
|
||||
if(buyOrder == null){
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user