Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java =================================================================== diff -u -r24bc10b6d72e9b27ee4ccaff0d94ade8276ad1bb -r61916eb81fcc8533c5f7ac8f450d8c7a644d2290 --- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 24bc10b6d72e9b27ee4ccaff0d94ade8276ad1bb) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 61916eb81fcc8533c5f7ac8f450d8c7a644d2290) @@ -29,6 +29,7 @@ import egovframework.com.utl.fcc.service.EgovFileUploadUtil; import egovframework.com.utl.fcc.service.EgovFormBasedFileVo; import lombok.extern.slf4j.Slf4j; +import org.hibernate.criterion.Order; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -73,6 +74,27 @@ @ResponseBody @RequestMapping( + value = {"/{changeReqTableName}/getMonitor.do"}, + method = {RequestMethod.GET} + ) + public ModelAndView getMonitor( + @PathVariable(value ="changeReqTableName") String changeReqTableName, + ReqAddDTO reqAddDTO, ModelMap model, HttpServletRequest request) throws Exception { + + SessionUtil.setAttribute("replaceTableName",changeReqTableName); + + reqAddDTO.setOrder(Order.asc("c_left")); + List list = this.reqAdd.getChildNode(reqAddDTO); + + SessionUtil.removeAttribute("replaceTableName"); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", list); + return modelAndView; + } + + @ResponseBody + @RequestMapping( value = {"/{changeReqTableName}/getNode.do"}, method = {RequestMethod.GET} )