Index: web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/UserReqStatusController.java =================================================================== diff -u -r73b61d12fc72c79664dce3231b0de5c00ca6c4eb -r01916dd6b07362a7b75fe81df642a9bfedc52e83 --- web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/UserReqStatusController.java (.../UserReqStatusController.java) (revision 73b61d12fc72c79664dce3231b0de5c00ca6c4eb) +++ web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/UserReqStatusController.java (.../UserReqStatusController.java) (revision 01916dd6b07362a7b75fe81df642a9bfedc52e83) @@ -130,5 +130,36 @@ } } + @ResponseBody + @RequestMapping( + value = {"/{changeReqTableName}/getStatusChildNode.do"}, + method = {RequestMethod.GET} + ) + public ModelAndView getStatusChildNode( + @PathVariable(value ="changeReqTableName") String changeReqTableName + ,V reqStatusDTO, HttpServletRequest request) throws Exception { + ParameterParser parser = new ParameterParser(request); + + String[] c_ids = StringUtility.split(parser.get("c_ids"), ","); + if( c_ids != null){ + List longList = new ArrayList<>(); + for (String c_id : c_ids ) { + longList.add(StringUtility.toLong(c_id)); + } + Criterion criterion = Restrictions.in("c_id", longList); + reqStatusDTO.getCriterions().add(criterion); + } + + SessionUtil.setAttribute("getStatusChildNode",changeReqTableName); + + List resultVO_List = reqStatus.getChildNode(reqStatusDTO); + + SessionUtil.removeAttribute("getStatusChildNode"); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", resultVO_List); + return modelAndView; + } + }