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);
boolean needcreate = false;
String groupName = code;
if (server == null) {
needcreate = true;
} else {
try {
group = server.findGroup(groupName);
} catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) {
log.error(code, var13);
needcreate = true;
}
}
// Server server = (Server)this.servers.get(code);
// boolean needcreate = false;
// String groupName = code;
// if (server == null) {
// needcreate = true;
// } else {
// try {
// group = server.findGroup(groupName);
// } catch (UnknownHostException | JIException | UnknownGroupException | NotConnectedException | IllegalArgumentException var13) {
// log.error(code, var13);
// needcreate = true;
// }
// }
boolean needcreate = false;
needcreate = true;
String groupName = code;
Server server = null;
if (needcreate) {
OpcServerManageDto dto = (OpcServerManageDto)this.opcServerManageDtos.get(code);
if (dto == null) {