| | |
| | | import com.ruoyi.framework.shiro.service.SysPasswordService; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysMenuService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.Cookie; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | |
| | | /** |
| | | * 首页 业务处理 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Controller |
| | | public class SysIndexController extends BaseController { |
| | | @Autowired |
| | | @Resource |
| | | private ISysMenuService menuService; |
| | | @Autowired |
| | | @Resource |
| | | private ISysConfigService configService; |
| | | @Autowired |
| | | @Resource |
| | | private SysPasswordService passwordService; |
| | | |
| | | // 系统首页 |
| | |
| | | // 取身份信息 |
| | | SysUser user = getSysUser(); |
| | | mmap.put("user", user); |
| | | mmap.put("sysName", FrameworkConfig.getName()); |
| | | |
| | | // 根据用户id取出菜单 |
| | | List<SysMenu> menus = menuService.selectMenusByUser(user); |