配置充电停车优惠

This commit is contained in:
Guoqs
2025-02-18 09:42:37 +08:00
parent afdebd9dc6
commit 154a7f35b6
9 changed files with 79 additions and 37 deletions

View File

@@ -3,7 +3,6 @@ package com.jsowell.mq;
import com.alibaba.fastjson2.JSON;
import com.huifu.adapay.core.exception.BaseAdaPayException;
import com.jsowell.common.constant.RabbitConstants;
import com.jsowell.common.util.YKCUtils;
import com.jsowell.pile.dto.AfterSettleOrderDTO;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.rabbitmq.client.Channel;
@@ -14,7 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.List;
/**
* 监听RabbitMQ消息 订单
@@ -33,10 +31,11 @@ public class OrderRabbitListener {
public void receiveChargeOrderData(AfterSettleOrderDTO afterSettleOrderDTO, Channel channel, Message message) throws IOException {
log.info("接收到订单结算数据:{}", JSON.toJSONString(afterSettleOrderDTO));
List<String> newLogicStationIdList = YKCUtils.getNewLogicStationIdList();
if (!newLogicStationIdList.contains(afterSettleOrderDTO.getStationId())) {
return;
}
// 2025年2月18日09点18分全部订单改为实时分账
// List<String> newLogicStationIdList = YKCUtils.getNewLogicStationIdList();
// if (!newLogicStationIdList.contains(afterSettleOrderDTO.getStationId())) {
// return;
// }
log.info("realTimeOrderSplit-订单{}开始执行新分账方法", afterSettleOrderDTO.getOrderCode());
try {