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");