默认2个终端
This commit is contained in:
parent
69a0671e8e
commit
8926510f78
@ -287,14 +287,14 @@ public class QueryStationsInfoController {
|
|||||||
|
|
||||||
List<ConnectorInfo> connectorInfoList = new ArrayList<>();
|
List<ConnectorInfo> connectorInfoList = new ArrayList<>();
|
||||||
Integer gunNumCache = (Integer) cachePile.get("gunNum");
|
Integer gunNumCache = (Integer) cachePile.get("gunNum");
|
||||||
gunNumCache = gunNumCache == null ? 1 : gunNumCache;
|
gunNumCache = gunNumCache == null ? 2 : gunNumCache;
|
||||||
for (int i = 1; i <= gunNumCache; i++) {
|
for (int i = 1; i <= gunNumCache; i++) {
|
||||||
String gunId = pileNo.concat(String.format("%02d", i));
|
String gunId = pileNo.concat(String.format("%02d", i));
|
||||||
ConnectorInfo connectorInfo = new ConnectorInfo();
|
ConnectorInfo connectorInfo = new ConnectorInfo();
|
||||||
connectorInfo.setConnectorID(gunId);
|
connectorInfo.setConnectorID(gunId);
|
||||||
String connectorName = REDIS.getCacheMapValue("gun:".concat(gunId), "terminalName"); //todo set them in redis!
|
String connectorName = REDIS.getCacheMapValue("gun:".concat(gunId), "terminalName"); //todo set them in redis!
|
||||||
connectorInfo.setConnectorName(connectorName == null ?
|
connectorInfo.setConnectorName(connectorName == null ?
|
||||||
Integer.parseInt(pileNo.substring(10, 14)) + "号桩 " + GUNNAMES[i] +
|
Integer.parseInt(pileNo.substring(10, 14)) + "号桩-" + GUNNAMES[i] +
|
||||||
"枪" : connectorName);
|
"枪" : connectorName);
|
||||||
Integer connectorType = (Integer) cachePile.get("connectorType");
|
Integer connectorType = (Integer) cachePile.get("connectorType");
|
||||||
connectorInfo.setConnectorType(connectorType == null ? 4 : connectorType);
|
connectorInfo.setConnectorType(connectorType == null ? 4 : connectorType);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user