rabbitmq.yml 4.55 KB
consumer:
  - address: 192.168.104.244:5672
    username: yoho
    password: yoho
    consumers:

      - class: com.yohoufo.order.mq.consumer.BuyerOrderUnpaidReminderDelayMsgConsumer
        topic: buyerOrder.unpaidReminder
        delay:
          interval: 720,1320

      - class: com.yohoufo.order.mq.consumer.WaitingPayDepositBuyerOrderAutoCancelDelayMsgConsumer
        topic: waitingPayDepositBuyerOrder.autoCancel
        delay:
          interval: 15

      - class: com.yohoufo.order.mq.consumer.BuyerOrderAutoCancelDelayMsgConsumer
        topic: buyerOrder.autoCancel
        delay:
          interval: 1440

      - class: com.yohoufo.order.mq.consumer.BuyerOrderAutoCancelDelayNDayMsgConsumer
        topic: buyerOrder.autoCancelAfterNDay
        delay:
          interval: 1440,4320,10080,21600,43200

      - class: com.yohoufo.order.mq.consumer.SellerOrderAutoCancelDelayMsgConsumer
        topic: sellerOrder.autoCancel
        delay:
          interval: 2,15

      - class: com.yohoufo.order.mq.consumer.BuyerOrderAutoCancelDelayMsgConsumer
        topic: buyerOrder.autoCancel
        delay:
          interval: 10

      - class: com.yohoufo.order.mq.consumer.BuyerOrderConfirmDelayMsgConsumer
        topic: buyerOrder.autoConfirm
        delay:
          interval: 10080

      - class: com.yohoufo.order.mq.consumer.BuyerOrderMiniFaultOuterTimeDelayMsgConsumer
        topic: buyerOrder.miniFaultAutoReject
        delay:
          interval: 1440

      #卖家物流揽收情况检查 24小时 48小时
      - class: com.yohoufo.order.mq.consumer.BuyerOrderSellerDeliveryCheckMsgConsumer
        topic: buyerOrder.sellerDeliveryCheck
        delay:
          interval: 1440,2880

      #- class: com.yohoufo.order.mq.consumer.BuyerOrderCancelShamDeliveryMsgConsumer
      #  topic: buyerOrder.cancelShamDeliver
      #  delay:
      #    interval: 2880

      - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer
        topic: order.notPaidNotice
        delay:
          interval: 5

      - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
        topic: order.notDeliver
        delay:
          interval: 1440,29520

      - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer
        topic: sellerOrder.autoCancelDeliver
        delay:
          interval: 2160,30240

      # 平台鉴定不能确定补发优惠券回调
      - class: com.yohoufo.order.mq.consumer.BuyerCouponSendResultForAppraiseUnsureConsumer
        topic: buyerOrder.couponSendResultForAppraiseUnsure
        ratelimit: 20

      # promotion
      # 发券
      - class: com.yohoufo.promotion.mq.CouponSendWithTradeMqNotifyConsumer
        topic: ufo.couponSendWithTradeMqNotify
        ratelimit: 20

      # 召回订单,库存记录状态变更为已完成
      - class: com.yohoufo.order.mq.consumer.DepositFinishDeliveryDelayMsgConsumer
        topic: deposit.finishDelivery
        delay:
          interval: 10

      - class: com.yohoufo.order.mq.consumer.SellerDepositOrderAutoCancelMsgConsumer
        topic: sellerDepositOrder.autoCancel
        delay:
          interval: 10

  #更新物流调拨信息
  - address: 192.168.104.244:5672
    username: yoho
    password: yoho
    consumers:
      - class: com.yohoufo.order.mq.consumer.ExpressInfoUpdateConsumer
        topic: ufo.order.updateExpressInfo

  #ocr百度云开关
  - address: 192.168.104.244:5672
    username: yoho
    password: yoho
    consumers:
      - class: com.yohoufo.user.consumer.OrcSwitchUpdateConsumer
        topic: reviewed.ocr.limit

  - address: 192.168.104.244:5672
    username: yoho
    password: yoho
    consumers:
      #物权转移确认超时
      - class: com.yohoufo.product.mq.consumer.ProductOwnerConfirmDelayMsgConsumer
        topic: productOwner.updateTimeOut
        delay:
          interval: 4320

  # crm
  - address: 192.168.104.244:5672
    consumers:
      # CRM发券
      - class: com.yohoufo.promotion.mq.CouponSendConsumer
        topic: ufo.couponSend
        ratelimit: 20

producer:
  - address: 192.168.104.244:5672
    producers:
      - bean: browseProducer  #only once named in classpath

  - address: 192.168.104.244:5672
    producers:
      - bean: yhProducer

  - address: 192.168.104.244:5672
    producers:
      - bean: ufoExpressInfoProducer

  - address: 192.168.104.244:5672
    username: yoho
    password: yoho
    producers:
      - bean: tradeMqProducer
        persistent: true
        confirmcallback: orderMessageConfirmCallback

  # crm
  - address: 192.168.104.244:5672
    producers:
      - bean: crmMqProducer
        trace: true