Index: pom.xml
===================================================================
diff -u -r47623bd6475cdd605786389e3566657d25021224 -rdd4ce97155dc52356cdd88e9c41fa50aaea72a84
--- pom.xml (.../pom.xml) (revision 47623bd6475cdd605786389e3566657d25021224)
+++ pom.xml (.../pom.xml) (revision dd4ce97155dc52356cdd88e9c41fa50aaea72a84)
@@ -10,7 +10,7 @@
4.0.0
313devgrp
java-service-tree-framework-backend-server
- 22.11.10
+ 22.11.11
pom
java-service-tree-framework
Index: web-module/pom.xml
===================================================================
diff -u -r47623bd6475cdd605786389e3566657d25021224 -rdd4ce97155dc52356cdd88e9c41fa50aaea72a84
--- web-module/pom.xml (.../pom.xml) (revision 47623bd6475cdd605786389e3566657d25021224)
+++ web-module/pom.xml (.../pom.xml) (revision dd4ce97155dc52356cdd88e9c41fa50aaea72a84)
@@ -7,7 +7,7 @@
313devgrp
java-service-tree-framework-backend-server
- 22.11.10
+ 22.11.11
../pom.xml
@@ -17,7 +17,7 @@
Web Project by 313 DEV GRP
- 22.12.06
+ 22.12.09
Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java
===================================================================
diff -u -r7e9b659d48eb49bed97c54660a95ff34e95ff383 -rdd4ce97155dc52356cdd88e9c41fa50aaea72a84
--- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 7e9b659d48eb49bed97c54660a95ff34e95ff383)
+++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision dd4ce97155dc52356cdd88e9c41fa50aaea72a84)
@@ -18,13 +18,19 @@
import egovframework.api.arms.module_reqadd.service.ReqAddSqlMapper;
import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController;
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.vo.JsTreeHibernateSearchDTO;
import egovframework.com.ext.jstree.support.util.ParameterParser;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.validation.BindingResult;
+import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@@ -83,6 +89,32 @@
@ResponseBody
@RequestMapping(
+ value = {"{changeReqTableName}/addNode.do"},
+ method = {RequestMethod.POST}
+ )
+ public ModelAndView addNode(
+ @PathVariable(value ="changeReqTableName") String changeReqTableName,
+ @Validated({AddNode.class}) ReqAddDTO reqAddDTO,
+ BindingResult bindingResult, ModelMap model) throws Exception {
+ if (bindingResult.hasErrors()) {
+ throw new RuntimeException();
+ } else {
+
+ SessionUtil.setAttribute("replaceTableName",changeReqTableName);
+
+ reqAddDTO.setC_title(Util_TitleChecker.StringReplace(reqAddDTO.getC_title()));
+ ReqAddDTO returnNode = reqAdd.addNode(reqAddDTO);
+
+ SessionUtil.removeAttribute("replaceTableName");
+
+ ModelAndView modelAndView = new ModelAndView("jsonView");
+ modelAndView.addObject("result", returnNode);
+ return modelAndView;
+ }
+ }
+
+ @ResponseBody
+ @RequestMapping(
value = {"/getTest.do"},
method = {RequestMethod.GET}
)