Ver código fonte

优化数据权限获取

tags/24080901
WendyYang 1 ano atrás
pai
commit
15c6320a97
1 arquivos alterados com 2 adições e 3 exclusões
  1. +2
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/datascope/provider/DataScopeContext.java

+ 2
- 3
pmapi/src/main/java/com/ningdatech/pmapi/datascope/provider/DataScopeContext.java Ver arquivo

@@ -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();
}


Carregando…
Cancelar
Salvar