From 8926510f78880fe5a1661e0002fd78434fd010cb Mon Sep 17 00:00:00 2001 From: ZZ Date: Tue, 21 Dec 2021 15:15:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A42=E4=B8=AA=E7=BB=88=E7=AB=AF?= 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 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);