Fissato il problema di sync con i gruppi

This commit is contained in:
Giancarlo Panichi 2023-06-08 14:17:50 +02:00
parent 3c9fc8fa6a
commit 98b28769fd
1 changed files with 3 additions and 11 deletions

View File

@ -558,19 +558,11 @@ public class SyncService {
if (epasGroups != null) {
EPASGroups groupPresent = null;
for (EPASGroups g : epasGroups) {
if (g.getExternalId() != null && !g.getExternalId().isEmpty()) {
Integer gExternalId=null;
try {
gExternalId=Integer.valueOf(g.getExternalId());
} catch (NumberFormatException e) {
logger.error("EPAS Group has invalid External Id: {}", g);
}
if (gExternalId!=null&&gExternalId.compareTo(sig.getId()) == 0) {
if (Integer.valueOf(g.getExternalId()).compareTo(sig.getId()) == 0) {
groupPresent = g;
break;
}
}
}
if (groupPresent == null) {
EPASGroupsDTO epasGroupsDTO = new EPASGroupsDTO(sig.getDescrizione(), null,