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 c598f206..acf9b83f 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 @@ -287,14 +287,14 @@ public class QueryStationsInfoController { List connectorInfoList = new ArrayList<>(); Integer gunNumCache = (Integer) cachePile.get("gunNum"); - gunNumCache = gunNumCache == null ? 1 : gunNumCache; + gunNumCache = gunNumCache == null ? 2 : gunNumCache; for (int i = 1; i <= gunNumCache; i++) { String gunId = pileNo.concat(String.format("%02d", i)); ConnectorInfo connectorInfo = new ConnectorInfo(); connectorInfo.setConnectorID(gunId); String connectorName = REDIS.getCacheMapValue("gun:".concat(gunId), "terminalName"); //todo set them in redis! connectorInfo.setConnectorName(connectorName == null ? - Integer.parseInt(pileNo.substring(10, 14)) + "号桩 " + GUNNAMES[i] + + Integer.parseInt(pileNo.substring(10, 14)) + "号桩-" + GUNNAMES[i] + "枪" : connectorName); Integer connectorType = (Integer) cachePile.get("connectorType"); connectorInfo.setConnectorType(connectorType == null ? 4 : connectorType);