Index: standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java =================================================================== diff -u -r17e125daa69136e50a0fdccae40a7b94c11ac91b -rcd59c2466a3ccef86d28fa354b850e3f73edc3f8 --- standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision 17e125daa69136e50a0fdccae40a7b94c11ac91b) +++ standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision cd59c2466a3ccef86d28fa354b850e3f73edc3f8) @@ -2,6 +2,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.google.common.collect.Maps; +import egovframework.api.rivalWar.aggregateResult.vo.AggregateResultDTO; import egovframework.api.rivalWar.menu.service.MenuService; import egovframework.api.rivalWar.menu.vo.MenuDTO; import egovframework.com.cmm.annotation.IncludedInfo; @@ -63,7 +64,6 @@ return modelAndView; } - @ResponseBody @RequestMapping(value = "/getPaginatedChildNode.do", method = RequestMethod.GET) public ModelAndView getPaginatedChildNode(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) @@ -149,6 +149,27 @@ } @ResponseBody + @RequestMapping(value = "/getRecentFirstChildNode.do", method = RequestMethod.GET) + public ModelAndView getRecentFirstChildNode(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) + throws Exception { + + jsTreeHibernateDTO.setWhere("c_parentid", new Long(3)); + List list = menuService.getChildNode(jsTreeHibernateDTO); + if(list.size() > 0){ + MenuDTO tempMenuDTO = list.get(0); + AggregateResultDTO resultDTO = tempMenuDTO.getAggregateResultDTO(); + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", resultDTO); + return modelAndView; + }else{ + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", "none exist childnode"); + return modelAndView; + } + + } + + @ResponseBody @RequestMapping(value = "/getClassifiedMenu.do", method = RequestMethod.GET) public ModelAndView getClassifiedMenu(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request) throws Exception {