|
|
@@ -206,9 +206,8 @@ public class ChargeServiceImpl implements ChargeService {
|
|
|
@Override
|
|
|
@DSTransactional(rollbackFor = Exception.class)
|
|
|
public Map<String, String> queryStartCharge(Long userId, String connectorId, Long userRechargeRightsId, Long userCouponId, Boolean isBooking, LocalDateTime startTime, LocalDateTime endTime) {
|
|
|
- var connectorId2StationId = getConnectorIdAndStationId(connectorId);
|
|
|
- connectorId = connectorId2StationId.get("connectorId");
|
|
|
- var stationId = connectorId2StationId.get("stationId");
|
|
|
+ connectorId = KymCache.INSTANCE.getConnectorId(connectorId);
|
|
|
+ var stationId = KymCache.INSTANCE.getStationIdByEquipmentIdOrConnectorId(connectorId);
|
|
|
LOGGER.info("用户:{},站点:{},设备:{}请求充电", userId, stationId, connectorId);
|
|
|
var account = checkCharge(userId, connectorId, stationId, isBooking, startTime);
|
|
|
|