|
|
@@ -310,7 +310,8 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
|
|
|
//获取用户的角色 是否是管理员
|
|
|
SysUser sysUser = userService.getById(userId);
|
|
|
SysUserJzgInfo userJzgInfo = sysUserJzgInfoService.getOne(new LambdaQueryWrapper<SysUserJzgInfo>()
|
|
|
- .eq(SysUserJzgInfo::getUserId, userId));
|
|
|
+ .eq(SysUserJzgInfo::getUserId, userId)
|
|
|
+ .eq(SysUserJzgInfo::getIsDelete, 0));
|
|
|
List<String> userRoleName = userService.getUserRoleName(userId);
|
|
|
if(userRoleName.contains("管理员")){
|
|
|
throw new SystemException("管理员不允许变更机构或删除");
|