Index: .idea/sonarIssues.xml
===================================================================
diff -u -r7e22b1924690824a27bb65043fd111a7861c35d3 -r3ecfb5fa21aa552fa91471b7813eb58dc847c6ac
--- .idea/sonarIssues.xml (.../sonarIssues.xml) (revision 7e22b1924690824a27bb65043fd111a7861c35d3)
+++ .idea/sonarIssues.xml (.../sonarIssues.xml) (revision 3ecfb5fa21aa552fa91471b7813eb58dc847c6ac)
@@ -1893,6 +1893,11 @@
+
+
+
+
+
@@ -1963,6 +1968,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java
===================================================================
diff -u -r1d8cbff9630971635e6b4948f2bfdd85034f53e9 -r3ecfb5fa21aa552fa91471b7813eb58dc847c6ac
--- standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision 1d8cbff9630971635e6b4948f2bfdd85034f53e9)
+++ standard/project/web/src/main/java/egovframework/api/rivalWar/menu/controller/AnonymousMenuController.java (.../AnonymousMenuController.java) (revision 3ecfb5fa21aa552fa91471b7813eb58dc847c6ac)
@@ -3,6 +3,7 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.collect.Maps;
import egovframework.api.rivalWar.aggregateResult.vo.AggregateResultDTO;
+import egovframework.api.rivalWar.compareInfo.vo.CompareInfoDTO;
import egovframework.api.rivalWar.menu.service.MenuService;
import egovframework.api.rivalWar.menu.vo.MenuDTO;
import egovframework.com.cmm.annotation.IncludedInfo;
@@ -150,7 +151,7 @@
@ResponseBody
@RequestMapping(value = "/getRootAggregateResult.do", method = RequestMethod.GET)
- public ModelAndView getRecentFirstChildNode(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request)
+ public ModelAndView getRootAggregateResult(MenuDTO jsTreeHibernateDTO, ModelMap model, HttpServletRequest request)
throws Exception {
jsTreeHibernateDTO.setWhere("c_parentid", new Long(3));
@@ -166,7 +167,26 @@
modelAndView.addObject("result", "none exist childnode");
return modelAndView;
}
+ }
+ @ResponseBody
+ @RequestMapping(value = "/getRootCompareInfo.do", method = RequestMethod.GET)
+ public ModelAndView getRootCompareInfo(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);
+ CompareInfoDTO resultDTO = tempMenuDTO.getCompareInfoDTO();
+ 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