This commit is contained in:
2024-02-28 14:47:47 +08:00
parent 3e6ef0cb3a
commit 32a5daeeac
6 changed files with 28 additions and 4 deletions

View File

@@ -341,4 +341,14 @@ public interface OrderBasicInfoMapper {
* @return 订单列表
*/
List<OrderBasicInfo> queryOrderListByGroupCode(String groupCode);
/**
* 查询新电途订单列表
* @param merchantId
* @param stationId
* @param startDate
* @param endDate
* @return
*/
List<OrderBasicInfo> queryXDTOrderList(String merchantId, String stationId, String startDate, String endDate);
}

View File

@@ -96,8 +96,8 @@ public class PileRemoteService {
// 获取充电桩0x13数据校验交易流水号是否一致
String pileIsChargingKey = CacheConstants.PILE_IS_CHARGING + pileSn + connectorCode;
String redisResult = redisCache.getCacheObject(pileIsChargingKey);
if (!StringUtils.equals(redisResult, transactionCode)) {
log.info("发送远程停止充电指令-充电桩枪口编号:{}, 获取到正在充电中的交易流水号:{}与入参交易流水号:{}不一致", pileSn + connectorCode, redisResult, transactionCode);
if (StringUtils.isNotBlank(redisResult) && !StringUtils.equals(redisResult, transactionCode)) {
log.info("发送远程停止充电指令-充电桩枪口编号:{}, 获取到正在充电中的交易流水号:{}, 与入参交易流水号:{}不一致", pileSn + connectorCode, redisResult, transactionCode);
return;
}
StopChargingCommand command = StopChargingCommand.builder()

View File

@@ -3636,6 +3636,12 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
return orderBasicInfoMapper.queryOrderListByGroupCode(groupCode);
}
/**
* 查询新电途订单
*/
public List<OrderBasicInfo> queryXDTOrderList(String merchantId, String stationId, String startDate, String endDate) {
return orderBasicInfoMapper.queryXDTOrderList(merchantId, stationId, startDate, endDate);
}
}

View File

@@ -570,7 +570,7 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
// 把充电桩正在充电中的状态存到redis
String pileIsChargingKey = CacheConstants.PILE_IS_CHARGING + realTimeMonitorData.getPileConnectorCode();
redisCache.setCacheObject(pileIsChargingKey, realTimeMonitorData.getTransactionCode(), 12);
redisCache.setCacheObject(pileIsChargingKey, realTimeMonitorData.getTransactionCode(), 20);
}
@Override