| | |
| | | * 加载入口配置页面数据 |
| | | */ |
| | | private void addMenuEntryConfigModel(Model model) { |
| | | model.addAttribute("entryConfigList", getMenuEntryConfigList()); |
| | | model.addAttribute("entryMenuList", getEntryMenuList()); |
| | | } |
| | | |
| | | /** |
| | | * 查询入口配置 |
| | | */ |
| | | @RequestMapping("/entry_config_list") |
| | | @ResponseBody |
| | | public Object entryConfigList() { |
| | | JSONObject result = new JSONObject(); |
| | | result.put("entryConfigList", getMenuEntryConfigList()); |
| | | result.put("entryMenuList", getEntryMenuList()); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 查询当前开通城市的入口配置 |
| | | */ |
| | | private List<MenuEntryConfig> getMenuEntryConfigList() { |
| | | Integer companyId = ShiroKit.getUser().getObjectId(); |
| | | List<MenuEntryConfig> entryConfigList = menuEntryConfigService.selectList( |
| | | return menuEntryConfigService.selectList( |
| | | new EntityWrapper<MenuEntryConfig>().eq("openCityId", companyId).orderBy("id", true)); |
| | | List<Menu> entryMenuList = menuService.selectList( |
| | | } |
| | | |
| | | /** |
| | | * 查询可选入口菜单 |
| | | */ |
| | | private List<Menu> getEntryMenuList() { |
| | | return menuService.selectList( |
| | | new EntityWrapper<Menu>() |
| | | .eq("status", 1) |
| | | .eq("ismenu", 1) |
| | |
| | | .ne("url", "") |
| | | .orderBy("levels", true) |
| | | .orderBy("num", true)); |
| | | model.addAttribute("entryConfigList", entryConfigList); |
| | | model.addAttribute("entryMenuList", entryMenuList); |
| | | } |
| | | |
| | | /** |