This commit is contained in:
Guoqs
2025-01-06 13:27:06 +08:00
parent bb02068115
commit de0b4aa6e4

View File

@@ -1,5 +1,6 @@
package com.jsowell.mq; package com.jsowell.mq;
import com.alibaba.fastjson2.JSON;
import com.huifu.adapay.core.exception.BaseAdaPayException; import com.huifu.adapay.core.exception.BaseAdaPayException;
import com.jsowell.common.constant.RabbitConstants; import com.jsowell.common.constant.RabbitConstants;
import com.jsowell.common.util.YKCUtils; import com.jsowell.common.util.YKCUtils;
@@ -30,10 +31,10 @@ public class OrderRabbitListener {
*/ */
@RabbitListener(queues = RabbitConstants.QUEUE_CHARGE_ORDER_DATA) @RabbitListener(queues = RabbitConstants.QUEUE_CHARGE_ORDER_DATA)
public void receiveChargeOrderData(AfterSettleOrderDTO afterSettleOrderDTO, Channel channel, Message message) throws IOException { public void receiveChargeOrderData(AfterSettleOrderDTO afterSettleOrderDTO, Channel channel, Message message) throws IOException {
log.info("接收到订单结算数据{}", afterSettleOrderDTO); log.info("接收到订单结算数据:{}", JSON.toJSONString(afterSettleOrderDTO));
List<String> newLogicStationIdList = YKCUtils.getNewLogicStationIdList(); List<String> newLogicStationIdList = YKCUtils.getNewLogicStationIdList();
if (newLogicStationIdList.contains(afterSettleOrderDTO.getStationId())) { if (newLogicStationIdList.contains(afterSettleOrderDTO.getStationId())) {
log.info("接收到订单结算数据:{}", afterSettleOrderDTO); log.info("realTimeOrderSplit-订单{}开始执行新分账方法", afterSettleOrderDTO.getOrderCode());
try { try {
orderBasicInfoService.realTimeOrderSplit(afterSettleOrderDTO); orderBasicInfoService.realTimeOrderSplit(afterSettleOrderDTO);
} catch (BaseAdaPayException e) { } catch (BaseAdaPayException e) {