Index: web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java =================================================================== diff -u -rb7429348b97fd89d41aaa97521e08ca41cf0c2f6 -r896f46bbda4d66296133c13bf4bb10ed9f1729c8 --- web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision b7429348b97fd89d41aaa97521e08ca41cf0c2f6) +++ web-module/src/main/java/egovframework/api/arms/module_reqadd/controller/UserReqAddController.java (.../UserReqAddController.java) (revision 896f46bbda4d66296133c13bf4bb10ed9f1729c8) @@ -40,6 +40,7 @@ import egovframework.api.arms.module_reqstatus.model.ReqStatusDTO; import egovframework.api.arms.module_reqstatus.service.ReqStatus; import egovframework.api.arms.util.FileHandler; +import egovframework.api.arms.util.PropertiesReader; import egovframework.api.arms.util.StringUtility; import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; import egovframework.com.ext.jstree.springHibernate.core.interceptor.SessionUtil; @@ -59,6 +60,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.ui.ModelMap; @@ -68,6 +70,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.client.RestTemplate; import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.servlet.ModelAndView; @@ -396,8 +399,17 @@ // 마지막으로 , REQADD_STATUS에 이슈 추가 했으면, // REQADD 테이블에 C_ISSUE_LINK 에 ARR String 으로 값 추가해 줄것. + String reqTableName = StringUtility.replace(changeReqTableName, + "T_ARMS_REQADD_", "T_ARMS_REQSTATUS_"); + PropertiesReader propertiesReader = new PropertiesReader("egovframework/egovProps/globals.properties"); + String armsUrl = "http://127.0.0.1:13131"; + String targetUrl = "/callback/api/arms/reqStatus/" + reqTableName + "/updateStatusNode.do"; + RestTemplate restTemplate = new RestTemplate(); + ResponseEntity response = restTemplate.getForEntity(armsUrl + targetUrl, String.class); + logger.info("response = " + response); + ModelAndView modelAndView = new ModelAndView("jsonView"); modelAndView.addObject("result", returnNode); return modelAndView; Index: web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/AnonReqStatusController.java =================================================================== diff -u -rb7429348b97fd89d41aaa97521e08ca41cf0c2f6 -r896f46bbda4d66296133c13bf4bb10ed9f1729c8 --- web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/AnonReqStatusController.java (.../AnonReqStatusController.java) (revision b7429348b97fd89d41aaa97521e08ca41cf0c2f6) +++ web-module/src/main/java/egovframework/api/arms/module_reqstatus/controller/AnonReqStatusController.java (.../AnonReqStatusController.java) (revision 896f46bbda4d66296133c13bf4bb10ed9f1729c8) @@ -12,13 +12,15 @@ package egovframework.api.arms.module_reqstatus.controller; import egovframework.api.arms.module_reqadd.model.ReqAddDTO; +import egovframework.api.arms.util.PropertiesReader; import egovframework.com.ext.jstree.springHibernate.core.interceptor.SessionUtil; 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; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.ui.ModelMap; @@ -27,6 +29,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.client.RestTemplate; import org.springframework.web.servlet.ModelAndView; import javax.annotation.PostConstruct; import javax.servlet.http.HttpServletRequest; @@ -65,6 +68,14 @@ SessionUtil.setAttribute("updateStatusNode",reqStatusTableName); reqStatus.putJiraIssue(reqStatusTableName); SessionUtil.removeAttribute("updateStatusNode"); + + PropertiesReader propertiesReader = new PropertiesReader("egovframework/egovProps/globals.properties"); + String armsUrl = "http://127.0.0.1:13131"; + String targetUrl = "/callback/api/arms/reqStatus/" + reqStatusTableName + "/issueCrawler/updateStatusNode.do"; + + RestTemplate restTemplate = new RestTemplate(); + ResponseEntity response = restTemplate.getForEntity(armsUrl + targetUrl, String.class); + ModelAndView modelAndView = new ModelAndView("jsonView"); modelAndView.addObject("result", "AnonReqStatusController :: putJiraIssue"); return modelAndView;