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