Index: pom.xml =================================================================== diff -u -rdd4ce97155dc52356cdd88e9c41fa50aaea72a84 -r1491162b8ffd716425cd9694bc0a1efc7c077583 --- pom.xml (.../pom.xml) (revision dd4ce97155dc52356cdd88e9c41fa50aaea72a84) +++ pom.xml (.../pom.xml) (revision 1491162b8ffd716425cd9694bc0a1efc7c077583) @@ -10,7 +10,7 @@ 4.0.0 313devgrp java-service-tree-framework-backend-server - 22.11.11 + 22.11.12 pom java-service-tree-framework Index: web-module/pom.xml =================================================================== diff -u -rdd4ce97155dc52356cdd88e9c41fa50aaea72a84 -r1491162b8ffd716425cd9694bc0a1efc7c077583 --- web-module/pom.xml (.../pom.xml) (revision dd4ce97155dc52356cdd88e9c41fa50aaea72a84) +++ web-module/pom.xml (.../pom.xml) (revision 1491162b8ffd716425cd9694bc0a1efc7c077583) @@ -7,7 +7,7 @@ 313devgrp java-service-tree-framework-backend-server - 22.11.11 + 22.11.12 ../pom.xml @@ -17,7 +17,7 @@ Web Project by 313 DEV GRP - 22.12.09 + 22.12.10 Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java =================================================================== diff -u -rb7d001cae3c47a72ac7063c1e046f8079affdc8f -r1491162b8ffd716425cd9694bc0a1efc7c077583 --- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision b7d001cae3c47a72ac7063c1e046f8079affdc8f) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 1491162b8ffd716425cd9694bc0a1efc7c077583) @@ -20,6 +20,7 @@ import egovframework.com.ext.jstree.springHibernate.core.interceptor.SessionUtil; 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.vo.JsTreeHibernateSearchDTO; import egovframework.com.ext.jstree.support.util.ParameterParser; import lombok.extern.slf4j.Slf4j; @@ -96,6 +97,7 @@ @PathVariable(value ="changeReqTableName") String changeReqTableName, @Validated({AddNode.class}) ReqAddDTO reqAddDTO, BindingResult bindingResult, ModelMap model) throws Exception { + if (bindingResult.hasErrors()) { throw new RuntimeException(); } else { @@ -115,6 +117,33 @@ @ResponseBody @RequestMapping( + value = {"{changeReqTableName}/moveNode.do"}, + method = {RequestMethod.POST} + ) + public ModelAndView moveNode( + @PathVariable(value ="changeReqTableName") String changeReqTableName, + @Validated({MoveNode.class}) ReqAddDTO reqAddDTO, + BindingResult bindingResult, ModelMap model, HttpServletRequest request) throws Exception { + + if (bindingResult.hasErrors()) { + throw new RuntimeException(); + } else { + + SessionUtil.setAttribute("replaceTableName",changeReqTableName); + + this.reqAdd.moveNode(reqAddDTO, request); + super.setJsonDefaultSetting(reqAddDTO); + + SessionUtil.removeAttribute("replaceTableName"); + + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", reqAddDTO); + return modelAndView; + } + } + + @ResponseBody + @RequestMapping( value = {"/getTest.do"}, method = {RequestMethod.GET} ) Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/model/ReqAddDTO.java =================================================================== diff -u -rb7d001cae3c47a72ac7063c1e046f8079affdc8f -r1491162b8ffd716425cd9694bc0a1efc7c077583 --- web-module/src/main/java/egovframework/api/arms/module_reqadd/model/ReqAddDTO.java (.../ReqAddDTO.java) (revision b7d001cae3c47a72ac7063c1e046f8079affdc8f) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/model/ReqAddDTO.java (.../ReqAddDTO.java) (revision 1491162b8ffd716425cd9694bc0a1efc7c077583) @@ -160,6 +160,17 @@ this.c_priority = c_priority; } + private String c_req_status; + + @Column(name="C_REQ_STATUS") + public String getC_req_status() { + return c_req_status; + } + + public void setC_req_status(String c_req_status) { + this.c_req_status = c_req_status; + } + // 요구사항 제목은 c_title 로. private String c_contents;