KKSU
2024-04-17 829f629756e5402bcd3e9f6ef1f9c6dbffbabb11
src/main/java/com/xcong/excoin/rabbit/consumer/WebsocketPriceConsumer.java
@@ -6,6 +6,7 @@
import com.xcong.excoin.modules.contract.service.RabbitOrderService;
import com.xcong.excoin.modules.contract.service.impl.OrderWebsocketServiceImpl;
import com.xcong.excoin.rabbit.pricequeue.OrderModel;
import com.xcong.excoin.rabbit.pricequeue.whole.WholePriceDataModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
@@ -168,6 +169,9 @@
     */
    @RabbitListener(queues = RabbitMqConfig.QUEUE_WHOLE_BOMB)
    public void onMessageWholeBomb(Message message, Channel channel) {
        String content = new String(message.getBody());
        WholePriceDataModel wholePriceDataModel = JSONArray.parseObject(content, WholePriceDataModel.class);
        log.info("==message-price-consumer==我收到消息了全仓爆仓: {}", wholePriceDataModel);
        orderService.wholeBombOrder(wholePriceDataModel);
    }
}