| | |
| | | log.info("消费者:{}", new String(message.getBody())); |
| | | } |
| | | |
| | | @RabbitListener(queues = "queue_order_delay") |
| | | @RabbitListener(queues = "queue_order_delay_qay") |
| | | public void orderCancelDelay(String id) { |
| | | try { |
| | | orderInfoService.autoCancelOrder(Long.parseLong(id)); |
| | |
| | | log.error("订单返利异常:", e); |
| | | } |
| | | } |
| | | |
| | | @RabbitListener(queues = QueueConstants.ORDER_COUPON) |
| | | public void getOrderCoupon(Long orderId) { |
| | | log.info("收到使用优惠卷消息:{}", orderId); |
| | | try { |
| | | memberProfitService.getOrderCoupon(orderId); |
| | | } catch (Exception e) { |
| | | log.error("使用优惠卷异常:", e); |
| | | } |
| | | } |
| | | } |