Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/ry_zhky/commit/ba5d53d823c79b20f86ed6e6e1ad8d3426fad740?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
9 additions and
0 deletions
@ -20,6 +20,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.* ;
import java.util.List ;
import java.util.stream.Collectors ;
@Controller
@RequestMapping ( "/system/userexamine" )
@ -27,6 +28,10 @@ public class SysUserExamineController extends BaseController {
private String prefix = "system/user/userexamine" ;
@Autowired
private ISysUserService userService ;
@Autowired
private ISysRoleService roleService ;
@Autowired
private ISysPostService postService ;
@RequiresPermissions ( "system:userexamine:view" )
@GetMapping ( )
public String user ( )
@ -56,7 +61,11 @@ public class SysUserExamineController extends BaseController {
@GetMapping ( "/examine/{userId}" )
public String userExamine ( @PathVariable ( "userId" ) Long userId , ModelMap mmap )
{
userService . checkUserDataScope ( userId ) ;
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 ) ) ;
return prefix + "/examinedetail" ;
}