Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java =================================================================== diff -u -r663837047ab042c4bd3cd245e17ad41e525caa2e -rbc01ad9490d4fd324169480d87a59c64d73e60ac --- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 663837047ab042c4bd3cd245e17ad41e525caa2e) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision bc01ad9490d4fd324169480d87a59c64d73e60ac) @@ -13,6 +13,7 @@ import egovframework.api.arms.module_filerepository.model.FileRepositoryDTO; import egovframework.api.arms.module_filerepository.service.FileRepository; +import egovframework.api.arms.module_pdserviceconnect.model.PdServiceConnectDTO; import egovframework.api.arms.module_reqadd.model.ReqAddDTO; import egovframework.api.arms.module_reqadd.model.ReqAddSqlMaaperDTO; import egovframework.api.arms.module_reqadd.service.ReqAdd; @@ -23,7 +24,9 @@ import egovframework.com.ext.jstree.springHibernate.core.util.Util_TitleChecker; import egovframework.com.ext.jstree.springHibernate.core.validation.group.AddNode; import egovframework.com.ext.jstree.springHibernate.core.validation.group.MoveNode; +import egovframework.com.ext.jstree.springHibernate.core.validation.group.UpdateNode; import egovframework.com.ext.jstree.support.util.ParameterParser; +import egovframework.com.ext.jstree.support.util.StringUtils; import egovframework.com.utl.fcc.service.EgovFileUploadUtil; import egovframework.com.utl.fcc.service.EgovFormBasedFileVo; import lombok.extern.slf4j.Slf4j; @@ -115,6 +118,11 @@ SessionUtil.setAttribute("replaceTableName",changeReqTableName); V returnVO = reqAdd.getNode(reqAddDTO); + if(StringUtils.isNotEmpty(returnVO.getC_version_Link())) { + String replaceTxt = returnVO.getC_version_Link().replaceAll("\\[", "").replaceAll("\\]", ""); + replaceTxt = replaceTxt.replaceAll("\"", ""); + returnVO.setC_version_Link(replaceTxt); + } SessionUtil.removeAttribute("replaceTableName"); @@ -210,6 +218,27 @@ } @ResponseBody + @RequestMapping({"/{changeReqTableName}/updateNode.do"}) + public ModelAndView updateNode( + @PathVariable(value ="changeReqTableName") String changeReqTableName, + @Validated({UpdateNode.class}) ReqAddDTO reqAddDTO, + BindingResult bindingResult, HttpServletRequest request, ModelMap model) throws Exception { + + if (bindingResult.hasErrors()) { + throw new RuntimeException(); + } else { + SessionUtil.setAttribute("replaceTableName",changeReqTableName); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", this.reqAdd.updateNode(reqAddDTO)); + + SessionUtil.removeAttribute("replaceTableName"); + + return modelAndView; + } + } + + @ResponseBody @RequestMapping( value = {"/{changeReqTableName}/moveNode.do"}, method = {RequestMethod.POST}