场站号不是桩号

This commit is contained in:
ZZ 2021-11-18 18:45:21 +08:00
parent b1458a18ec
commit 6a5e64beab

View File

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