|
|
@@ -28,10 +28,9 @@ public class DataScopeContext implements Serializable { |
|
|
|
} |
|
|
|
|
|
|
|
public static Optional<DataScopeDTO> getDataScope(String roleCode) { |
|
|
|
String key = roleCode; |
|
|
|
DataScopeProvider dataScopeProvider = DSP_MAP.get(key); |
|
|
|
DataScopeProvider dataScopeProvider = DSP_MAP.get(roleCode); |
|
|
|
if (dataScopeProvider == null) { |
|
|
|
throw new IllegalArgumentException(String.format(WARN_MSG, key)); |
|
|
|
throw new IllegalArgumentException(String.format(WARN_MSG, roleCode)); |
|
|
|
} |
|
|
|
return dataScopeProvider.findDataFieldProperty(); |
|
|
|
} |
|
|
|