From 6a5e64beabfaccaa09397b5d32134a2fe5e29743 Mon Sep 17 00:00:00 2001 From: ZZ Date: Thu, 18 Nov 2021 18:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E7=AB=99=E5=8F=B7=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E6=A1=A9=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xhpc/evcs/api/QueryStationsInfoController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStationsInfoController.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStationsInfoController.java index 14234d18..3f704693 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStationsInfoController.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/api/QueryStationsInfoController.java @@ -292,8 +292,8 @@ public class QueryStationsInfoController { connectorInfo.setConnectorID(gunId); String connectorName = REDIS.getCacheMapValue("gun:".concat(gunId), "terminalName"); //todo set them in redis! connectorInfo.setConnectorName(connectorName == null ? - Integer.parseInt(pileNo.substring(5, 10)) + "号桩 " + GUNNAMES[i] + - "枪" : connectorName); + Integer.parseInt(pileNo.substring(10, 14)) + "号桩 " + GUNNAMES[i] + + "枪" : connectorName); Integer connectorType = (Integer) cachePile.get("connectorType"); connectorInfo.setConnectorType(connectorType == null ? 4 : connectorType); Integer voltageUpperLimits = (Integer) cachePile.get("voltageUpperLimits");