|
@@ -5,11 +5,13 @@ import com.usky.dxtop.common.utils.StringUtils;
|
|
|
import com.usky.dxtop.model.Order;
|
|
|
import com.usky.dxtop.service.MsgLogService;
|
|
|
import com.usky.dxtop.service.OrderService;
|
|
|
+import com.usky.dxtop.service.config.rabbitmq.RabbitmqFactoryAware;
|
|
|
import com.usky.dxtop.service.constant.MsgLogBusinessCode;
|
|
|
import com.usky.dxtop.service.emun.OrderStatus;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.amqp.core.Message;
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
|
+import org.springframework.amqp.rabbit.listener.RabbitListenerContainerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -32,6 +34,8 @@ public class ChargeMqListener {
|
|
|
private OrderService orderService;
|
|
|
@Autowired
|
|
|
private MsgLogService msgLogService;
|
|
|
+ @Autowired
|
|
|
+ private RabbitmqFactoryAware rabbitmqFactoryAware;
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@RabbitListener(queues = QUEUE_NAME, containerFactory = LISTENER_NAME)
|