fixed: 修复LDAP同步部门重复写入bug

This commit is contained in:
xxx 2023-11-20 10:43:59 +08:00
parent c3b3e06a07
commit ff9e212366

View File

@ -136,6 +136,12 @@ public class LDAPBus {
}
// 写入本地缓存
depIdKeyByName.put(fullName, depId);
// 写入本地缓存
LdapDepartment storedLdapDepartment = new LdapDepartment();
storedLdapDepartment.setUuid(uuid);
storedLdapDepartment.setDn(dn);
storedLdapDepartment.setDepartmentId(depId);
ldapDepartments.put(uuid, storedLdapDepartment);
}
}