//package cn.hnthyy.thmz.mq;
//
//import cn.hnthyy.thmz.service.thmz.OrderStatusChangeService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.jms.annotation.JmsListener;
//import org.springframework.stereotype.Component;
//
///**
// * MQ监听者
// */
//@Component
//public class ConsumerListener {
//   @Autowired
//   private OrderStatusChangeService orderStatusChangeService;
//    // 使用JmsListener配置消费者监听的队列，其中text是接收到的消息
//
//    @JmsListener(destination = "orderStatusChange")
//    public void receiveQueue(String text) {
//        orderStatusChangeService.orderStatusChange(text);
//    }
//}