查询站点方式优化
This commit is contained in:
parent
046e4a1826
commit
9987b721a5
@ -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<XhpcChargingStation> 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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user