ApiScopeMap Loading 오류 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user