mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
角色菜单授权增加organid和角色的organid统一的处理:为空或不一致都统一为角色的机构;
This commit is contained in:
+2
-1
@@ -171,7 +171,8 @@ public class PermissionServiceImpl implements PermissionService {
|
||||
if (Objects.isNull(role)) {
|
||||
throw new ServiceException(ErrorCodeConstants.ROLE_NOT_EXISTS);
|
||||
}
|
||||
if (Objects.isNull(organId)) {
|
||||
// 前端没传或者查一次后切换了组织导致跟角色组织不一致的统一为角色的组织
|
||||
if (Objects.isNull(organId) || ObjectUtil.notEqual(role.getOrganId(), organId)) {
|
||||
organId = role.getOrganId();
|
||||
}
|
||||
final Long finalOrganId = organId;
|
||||
|
||||
Reference in New Issue
Block a user