增加系统管理员 查询countryCard所有数据。
This commit is contained in:
+2
-1
@@ -332,9 +332,10 @@ public class CountryCardManageReleaseEOServiceImpl extends ServiceImpl<CountryCa
|
||||
List<SysUserRole> userRoleList = this.sysUserRoleService.list(new QueryWrapper<SysUserRole>().lambda().eq(SysUserRole::getUserId, currentUser.getId())); // 查询用户所有角色
|
||||
if(CollectionUtils.isNotEmpty(userRoleList)){
|
||||
CollectManifestRoleIdEnum countruCardManage = CollectManifestRoleIdEnum.COUNTRU_CARD_MANAGE;
|
||||
CollectManifestRoleIdEnum managerId = CollectManifestRoleIdEnum.MANAGER_ID;
|
||||
List<SysUserRole> userRoles = userRoleList.stream().filter(userRole -> {
|
||||
boolean flag = false;
|
||||
if(StringUtils.equals(userRole.getRoleId(),countruCardManage.getId())){
|
||||
if(StringUtils.equals(userRole.getRoleId(),countruCardManage.getId()) || StringUtils.equals(userRole.getRoleId(),managerId.getId())){
|
||||
flag = true;
|
||||
}
|
||||
return flag;
|
||||
|
||||
Reference in New Issue
Block a user