| | |
| | | private SysPasswordService passwordService; |
| | | |
| | | // 系统首页 |
| | | @GetMapping("/index-archive") |
| | | @GetMapping("/index") |
| | | public String index(@RequestParam(value = "bizType", required = false) String bizType, |
| | | ModelMap mmap) { |
| | | // 取身份信息 |
| | | SysUser user = getSysUser(); |
| | | mmap.put("user", user); |
| | | |
| | | |
| | | //根据bizType获取菜单 |
| | | if(StringUtils.isEmpty(bizType)){ |
| | |
| | | } |
| | | List<SysMenu> menus = this.getMenusByBizType(user, bizType); |
| | | mmap.put("menus", menus); |
| | | |
| | | //判断登录用户,根据用户不同,跳转不同首页 |
| | | String welcomeUrl = "/dzhwk/index"; |
| | | mmap.put("welcomeUrl", welcomeUrl); |
| | | |
| | | mmap.put("user", user); |
| | | mmap.put("sideTheme", configService.selectConfigByKey("sys.index.sideTheme", user.getCompanyId())); |
| | | mmap.put("skinName", configService.selectConfigByKey("sys.index.skinName", user.getCompanyId())); |
| | | Boolean footer = Convert.toBool(configService.selectConfigByKey("sys.index.footer", user.getCompanyId()), true); |