Index: standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java =================================================================== diff -u -r7085f320a8edef761361cb82c8a2aefff6d78c05 -r017d4834d9f5bf908ff2750c829322cceb53f49f --- standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision 7085f320a8edef761361cb82c8a2aefff6d78c05) +++ standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision 017d4834d9f5bf908ff2750c829322cceb53f49f) @@ -119,19 +119,13 @@ ParameterParser parser = new ParameterParser(request); - logger.info("jrebel reload test"); - if (parser.getInt("c_id") <= 0) { throw new RuntimeException(); } - logger.info("jrebel reload test #1"); - jsTreeHibernateDTO.setWhere("c_parentid", new Long(parser.get("c_id"))); List list = menuService.getChildMenu(jsTreeHibernateDTO); - logger.info("jrebel reload test #3"); - ModelAndView modelAndView = new ModelAndView("jsonView"); modelAndView.addObject("result", list); return modelAndView; @@ -142,11 +136,11 @@ public ModelAndView getRootMenuCategories(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) throws Exception { - jsTreeHibernateDTO.setC_id(new Long(2)); - MenuDTO menuDTO = menuService.getMenu(jsTreeHibernateDTO); + jsTreeHibernateDTO.setWhere("c_parentid", new Long(2)); + List list = menuService.getChildMenu(jsTreeHibernateDTO); ModelAndView modelAndView = new ModelAndView("jsonView"); - modelAndView.addObject("result", menuDTO); + modelAndView.addObject("result", list); return modelAndView; } @@ -155,12 +149,11 @@ public ModelAndView getRecentList(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) throws Exception { - long rootMenuCid = new Long(3); - jsTreeHibernateDTO.setC_id(rootMenuCid); - MenuDTO menuDTO = menuService.getMenu(jsTreeHibernateDTO); + jsTreeHibernateDTO.setWhere("c_parentid", new Long(3)); + List list = menuService.getChildMenu(jsTreeHibernateDTO); ModelAndView modelAndView = new ModelAndView("jsonView"); - modelAndView.addObject("result", menuDTO); + modelAndView.addObject("result", list); return modelAndView; } @@ -169,12 +162,11 @@ public ModelAndView getClassifiedMenu(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) throws Exception { - long rootMenuCid = new Long(4); - jsTreeHibernateDTO.setC_id(rootMenuCid); - MenuDTO menuDTO = menuService.getMenu(jsTreeHibernateDTO); + jsTreeHibernateDTO.setWhere("c_parentid", new Long(4)); + List list = menuService.getChildMenu(jsTreeHibernateDTO); ModelAndView modelAndView = new ModelAndView("jsonView"); - modelAndView.addObject("result", menuDTO); + modelAndView.addObject("result", list); return modelAndView; }