diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStartChargeController.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStartChargeController.java index 6efbeee1..ed558aad 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStartChargeController.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStartChargeController.java @@ -126,11 +126,8 @@ public class QueryStartChargeController { private void emptyHorder(String startChargeSeq, String connectorId, EtOrderMapping etOrderMapping) { - XhpcChargingStation stationExample = new XhpcChargingStation(); final Long stationId = REDIS.getCacheMapValue("pile:".concat(connectorId.substring(0, 14)), "stationId"); - stationExample.setId(stationId); - Example example = Example.of(stationExample); - XhpcChargingStation xhpcChargingStation = xhpcChargingStationRepository.findOne(example).orElse(null); + XhpcChargingStation xhpcChargingStation = xhpcChargingStationRepository.findById(stationId).orElse(null); if (xhpcChargingStation != null) { XhpcHistoryOrder emptyHorder = new XhpcHistoryOrder(); emptyHorder.setTenantId(xhpcChargingStation.getTenantId());