ApiScopeMap Loading 오류 수정

This commit is contained in:
Yunsam.Eo
2025-12-15 18:06:41 +09:00
parent c08024d9bb
commit 73454018e2
@@ -31,9 +31,15 @@ public class ScopeDAO extends BaseDAO {
Map<String, HashSet<String>> clientEntitymap = new HashMap<>(); Map<String, HashSet<String>> clientEntitymap = new HashMap<>();
scopeEntities.forEach(scopeEntity -> { scopeEntities.forEach(scopeEntity -> {
HashSet<String> set = new HashSet<>(); String apiId = scopeEntity.getId().getBzwksvckeyname();
String scopeId = scopeEntity.getId().getBzwksvckeyname() + scopeEntity.getId().getScopeid(); HashSet<String> scopeSet = clientEntitymap.get(apiId);
clientEntitymap.put(scopeId, set); if (scopeSet == null) {
scopeSet = new HashSet<String>();
clientEntitymap.put(apiId, scopeSet);
}
String scopeId = scopeEntity.getId().getScopeid();
clientEntitymap.get(apiId).add(scopeId);
// clientEntitymap.put(scopeId, set);
}); });
return clientEntitymap; return clientEntitymap;