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<>();
scopeEntities.forEach(scopeEntity -> {
HashSet<String> set = new HashSet<>();
String scopeId = scopeEntity.getId().getBzwksvckeyname() + scopeEntity.getId().getScopeid();
clientEntitymap.put(scopeId, set);
String apiId = scopeEntity.getId().getBzwksvckeyname();
HashSet<String> scopeSet = clientEntitymap.get(apiId);
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;