mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-28 19:18:00 +08:00
update
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user