Index: standard/project/web/src/main/java/egovframework/api/rivalWar/directChat/controller/AdminDirectChatController.java =================================================================== diff -u -r8155383b5a954001eb91ba7151ecf51f036296f8 -r8e1302ac5032c4d5fc99f741925d52cfcdace36e --- standard/project/web/src/main/java/egovframework/api/rivalWar/directChat/controller/AdminDirectChatController.java (.../AdminDirectChatController.java) (revision 8155383b5a954001eb91ba7151ecf51f036296f8) +++ standard/project/web/src/main/java/egovframework/api/rivalWar/directChat/controller/AdminDirectChatController.java (.../AdminDirectChatController.java) (revision 8e1302ac5032c4d5fc99f741925d52cfcdace36e) @@ -3,9 +3,12 @@ import com.fasterxml.jackson.core.JsonProcessingException; import egovframework.api.rivalWar.directChat.service.DirectChatService; import egovframework.api.rivalWar.directChat.vo.DirectChatDTO; +import egovframework.api.rivalWar.menu.service.MenuService; +import egovframework.api.rivalWar.menu.vo.MenuDTO; import egovframework.com.ext.jstree.springiBatis.core.util.Util_TitleChecker; import egovframework.com.ext.jstree.springiBatis.core.validation.group.*; import egovframework.com.ext.jstree.support.mvc.GenericAbstractController; +import egovframework.com.ext.jstree.support.util.DateUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -19,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; +import java.util.HashSet; /** * Created by Administrator on 2017-09-24. @@ -30,6 +34,9 @@ @Autowired private DirectChatService directChatService; + @Autowired + private MenuService menuService; + private final Logger logger = LoggerFactory.getLogger(this.getClass()); /** @@ -49,8 +56,25 @@ if (bindingResult.hasErrors()) throw new RuntimeException(); + MenuDTO searchMenuDTO = new MenuDTO(); + Long menuCId = new Long(92); + searchMenuDTO.setC_id(menuCId); + + MenuDTO menuDTO = menuService.getNode(searchMenuDTO); + + DirectChatDTO addedNode = directChatService.addNode(jsTreeHibernateDTO); + + menuDTO.getDirectChatDTOs().add(addedNode); + + menuService.alterNode(menuDTO); + ModelAndView modelAndView = new ModelAndView("jsonView"); - modelAndView.addObject("result", directChatService.addNode(jsTreeHibernateDTO)); + modelAndView.addObject("result", addedNode); + + //메뉴 하나 가져온다 ( 향후 이부분은 리퀘스트로 대치 ) + + + return modelAndView; } @@ -164,7 +188,7 @@ @ResponseBody @RequestMapping(value = "/analyzeNode.do", method = RequestMethod.GET) - public ModelAndView getChildNode(ModelMap model) { + public ModelAndView analyzeNode(ModelMap model) { model.addAttribute("analyzeResult", ""); ModelAndView modelAndView = new ModelAndView("jsonView"); Index: standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/vo/JsTreeHibernatePaginatedDTO.java =================================================================== diff -u -r638758f42b8e7b63fd338ad56077358561c8cfc0 -r8e1302ac5032c4d5fc99f741925d52cfcdace36e --- standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/vo/JsTreeHibernatePaginatedDTO.java (.../JsTreeHibernatePaginatedDTO.java) (revision 638758f42b8e7b63fd338ad56077358561c8cfc0) +++ standard/project/web/src/main/java/egovframework/com/ext/jstree/springHibernate/core/vo/JsTreeHibernatePaginatedDTO.java (.../JsTreeHibernatePaginatedDTO.java) (revision 8e1302ac5032c4d5fc99f741925d52cfcdace36e) @@ -31,7 +31,7 @@ /** 페이지갯수 */ @JsonIgnore - private int pageUnit = 10; + private int pageUnit = 1000; /** 페이지사이즈 */ @JsonIgnore