|
|
|
@ -8,6 +8,7 @@ import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.framework.shiro.util.AuthorizationUtils;
|
|
|
|
|
import com.ruoyi.system.domain.SysPost;
|
|
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
|
|
import com.ruoyi.system.service.ISysRoleService;
|
|
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
|
@ -99,8 +100,8 @@ public class SysUserExamineController extends BaseController {
|
|
|
|
|
{
|
|
|
|
|
List<SysRole> roles = roleService.selectRolesByUserId(userId);
|
|
|
|
|
mmap.put("user",userService.selectUserById(userId));
|
|
|
|
|
mmap.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList()));
|
|
|
|
|
mmap.put("posts", postService.selectPostsByUserId(userId));
|
|
|
|
|
mmap.put("roles", roleService.selectRolesByUserIds(userId));
|
|
|
|
|
mmap.put("posts", postService.selectPostsByUserIds(userId));
|
|
|
|
|
return prefix + "/examineprint";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|