This commit is contained in:
USER-20220102CG\noblelift
2023-06-07 18:41:20 +08:00
parent a66792724e
commit 0725fae4eb

View File

@@ -89,20 +89,24 @@ public class OpcServerServiceImpl implements OpcServerService, ApplicationAutoIn
// } // }
// } // }
Server server = (Server)this.servers.get(code); // Server server = (Server)this.servers.get(code);
boolean needcreate = false; // boolean needcreate = false;
String groupName = code; // String groupName = code;
if (server == null) { // if (server == null) {
needcreate = true; // needcreate = true;
} else { // } else {
try { // try {
group = server.findGroup(groupName); // group = server.findGroup(groupName);
} catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) { // } catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) {
log.error(code, var13); // log.error(code, var13);
needcreate = true; // needcreate = true;
} // }
} // }
boolean needcreate = false;
needcreate = true;
String groupName = code;
Server server = null;
if (needcreate) { if (needcreate) {
OpcServerManageDto dto = (OpcServerManageDto)this.opcServerManageDtos.get(code); OpcServerManageDto dto = (OpcServerManageDto)this.opcServerManageDtos.get(code);
if (dto == null) { if (dto == null) {