mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
Merge branch 'main' of ssh://192.168.1.205:9922/cf_devdept2/cf_imes_server
This commit is contained in:
+2
-1
@@ -171,7 +171,8 @@ public class PermissionServiceImpl implements PermissionService {
|
|||||||
if (Objects.isNull(role)) {
|
if (Objects.isNull(role)) {
|
||||||
throw new ServiceException(ErrorCodeConstants.ROLE_NOT_EXISTS);
|
throw new ServiceException(ErrorCodeConstants.ROLE_NOT_EXISTS);
|
||||||
}
|
}
|
||||||
if (Objects.isNull(organId)) {
|
// 前端没传或者查一次后切换了组织导致跟角色组织不一致的统一为角色的组织
|
||||||
|
if (Objects.isNull(organId) || ObjectUtil.notEqual(role.getOrganId(), organId)) {
|
||||||
organId = role.getOrganId();
|
organId = role.getOrganId();
|
||||||
}
|
}
|
||||||
final Long finalOrganId = organId;
|
final Long finalOrganId = organId;
|
||||||
|
|||||||
Reference in New Issue
Block a user