|
@@ -3,8 +3,11 @@ package com.jeesite.modules.sso.web;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
+import com.jeesite.modules.sys.entity.Role;
|
|
|
|
+import com.jeesite.modules.sys.service.RoleService;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.context.annotation.Primary;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.Model;
|
|
import org.springframework.ui.Model;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -36,6 +39,8 @@ public class SsoAppController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private SsoAppService ssoAppService;
|
|
private SsoAppService ssoAppService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private RoleService roleService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取数据
|
|
* 获取数据
|
|
@@ -109,6 +114,9 @@ public class SsoAppController extends BaseController {
|
|
@RequestMapping(value = "form")
|
|
@RequestMapping(value = "form")
|
|
public String form(SsoApp ssoApp, Model model) {
|
|
public String form(SsoApp ssoApp, Model model) {
|
|
model.addAttribute("ssoApp", ssoApp);
|
|
model.addAttribute("ssoApp", ssoApp);
|
|
|
|
+ //查询权限列表
|
|
|
|
+ List<Role> rolelist = roleService.findList(new Role());
|
|
|
|
+ model.addAttribute("approles", rolelist);
|
|
return "modules/sso/ssoAppForm";
|
|
return "modules/sso/ssoAppForm";
|
|
}
|
|
}
|
|
|
|
|