| | |
| | | |
| | | @Bean |
| | | public Binding orderReturnMoneyBind() { |
| | | return BindingBuilder.bind(agentReturnMoneyQueue()).to(agentReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute()); |
| | | return BindingBuilder.bind(orderReturnMoneyQueue()).to(orderReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute()); |
| | | } |
| | | |
| | | /** |
| | | * 补贴金额 |
| | | * @return |
| | | */ |
| | | //补贴金额 start |
| | | @Bean |
| | | public DirectExchange perkMoneyExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.PERK_MONEY.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue perkMoneyQueue() { |
| | | return new Queue(QueueConstants.PERK_MONEY); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding perkMoneyBind() { |
| | | return BindingBuilder.bind(perkMoneyQueue()).to(perkMoneyExchange()).with(RabbitQueueEnum.PERK_MONEY.getRoute()); |
| | | } |
| | | //补贴金额 end |
| | | |
| | | /** |
| | | * 强制卖出 |
| | | * @return |
| | | */ |
| | | //强制卖出 start |
| | | @Bean |
| | | public DirectExchange forceVoucherSaleExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.FORCE_VOUCHER_SALE.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue forceVoucherSaleQueue() { |
| | | return new Queue(QueueConstants.FORCE_VOUCHER_SALE); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding forceVoucherSaleBind() { |
| | | return BindingBuilder.bind(forceVoucherSaleQueue()).to(forceVoucherSaleExchange()).with(RabbitQueueEnum.FORCE_VOUCHER_SALE.getRoute()); |
| | | } |
| | | //强制卖出 end |
| | | |
| | | } |