Merge branch 'whole_new' of http://120.27.238.55:7000/r/exchange into whole_new
| | |
| | | **/ |
| | | @Slf4j |
| | | @Component |
| | | @ConditionalOnProperty(prefix = "app", name = "rabbit-consumer", havingValue = "true") |
| | | @ConditionalOnProperty(prefix = "app", name = "rabbit-consumer1", havingValue = "true") |
| | | public class FollowConsumer { |
| | | |
| | | @Autowired |
| | |
| | | public void sendAddFollowOrder(Long id) { |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | log.info("发送跟单下单消息: {}, {}", id, correlationData.getId()); |
| | | rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_A, RabbitMqConfig.ROUTINGKEY_FOLLOW_ORDER, id, correlationData); |
| | | rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_A, RabbitMqConfig.ROUTINGKEY_FOLLOW_ORDER, id.toString(), correlationData); |
| | | } |
| | | } |