fix 修复 数据权限 缓存方法名错误问题

feature/model
疯狂的狮子li 3 years ago
parent e6bcced213
commit c0d749b1e2

@ -160,13 +160,13 @@ public class PlusDataPermissionHandler {
DataPermission dataPermission;
// 获取方法注解
for (Method method : methods) {
dataPermission = dataPermissionCacheMap.get(method.getName());
dataPermission = dataPermissionCacheMap.get(mappedStatementId);
if (ObjectUtil.isNotNull(dataPermission)) {
return dataPermission.value();
}
if (AnnotationUtil.hasAnnotation(method, DataPermission.class)) {
dataPermission = AnnotationUtil.getAnnotation(method, DataPermission.class);
dataPermissionCacheMap.put(method.getName(), dataPermission);
dataPermissionCacheMap.put(mappedStatementId, dataPermission);
return dataPermission.value();
}
}

Loading…
Cancel
Save