diff --git a/src/main/java/kcc/com/cmm/LoginVO.java b/src/main/java/kcc/com/cmm/LoginVO.java
index 6e223ad4..dc1d56f5 100644
--- a/src/main/java/kcc/com/cmm/LoginVO.java
+++ b/src/main/java/kcc/com/cmm/LoginVO.java
@@ -121,6 +121,7 @@ public class LoginVO implements Serializable{
private String key;
private String user_id;
private String returnUrl;
+ private String mberSeq;
public String getId() {
return id;
@@ -425,6 +426,13 @@ public class LoginVO implements Serializable{
public void setReturnUrl(String returnUrl) {
this.returnUrl = returnUrl;
}
-
+ public String getMberSeq() {
+ return mberSeq;
+ }
+ public void setMberSeq(String mberSeq) {
+ this.mberSeq = mberSeq;
+ }
+
+
}
diff --git a/src/main/java/kcc/let/uat/uia/service/EgovLoginService.java b/src/main/java/kcc/let/uat/uia/service/EgovLoginService.java
index 55c4d2a8..85a983dd 100644
--- a/src/main/java/kcc/let/uat/uia/service/EgovLoginService.java
+++ b/src/main/java/kcc/let/uat/uia/service/EgovLoginService.java
@@ -92,4 +92,6 @@ public interface EgovLoginService {
LoginVO APIActionLogin(LoginVO vo) throws Exception;
LoginVO selectOffeduMberChk(LoginVO vo) throws Exception;
+
+ void updateMberSeqKeyAjax(LoginVO vo) throws Exception;
}
diff --git a/src/main/java/kcc/let/uat/uia/service/impl/EgovLoginServiceImpl.java b/src/main/java/kcc/let/uat/uia/service/impl/EgovLoginServiceImpl.java
index 995bf53f..d2f3cdcb 100644
--- a/src/main/java/kcc/let/uat/uia/service/impl/EgovLoginServiceImpl.java
+++ b/src/main/java/kcc/let/uat/uia/service/impl/EgovLoginServiceImpl.java
@@ -281,4 +281,9 @@ public class EgovLoginServiceImpl extends EgovAbstractServiceImpl implements
public LoginVO selectOffeduMberChk(LoginVO vo) throws Exception {
return loginDAO.selectOffeduMberChk(vo);
}
+
+ @Override
+ public void updateMberSeqKeyAjax(LoginVO vo) throws Exception {
+ loginDAO.updateMberSeqKeyAjax(vo);
+ }
}
diff --git a/src/main/java/kcc/let/uat/uia/service/impl/LoginDAO.java b/src/main/java/kcc/let/uat/uia/service/impl/LoginDAO.java
index c479d297..aa756462 100644
--- a/src/main/java/kcc/let/uat/uia/service/impl/LoginDAO.java
+++ b/src/main/java/kcc/let/uat/uia/service/impl/LoginDAO.java
@@ -135,4 +135,9 @@ public class LoginDAO extends EgovAbstractDAO {
public LoginVO selectOffeduMberChk(LoginVO vo) throws Exception {
return (LoginVO)select("loginDAO.selectOffeduMberChk", vo);
}
+
+ public void updateMberSeqKeyAjax(LoginVO vo) throws Exception{
+ update("loginDAO.updateMberSeqKeyAjax", vo);
+
+ }
}
diff --git a/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java b/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java
index 01423dd0..c1f5d57f 100644
--- a/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java
+++ b/src/main/java/kcc/let/uat/uia/web/APILoginContoller.java
@@ -4,6 +4,8 @@ import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
+import java.time.LocalDateTime;
+import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.Map;
@@ -23,9 +25,12 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.context.support.WebApplicationContextUtils;
+import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
+import egovframework.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import kcc.com.cmm.LoginVO;
+import kcc.com.utl.fcc.service.EgovStringUtil;
import kcc.let.uat.uia.service.EgovLoginService;
import kcc.let.uss.umt.service.EgovUserManageService;
import kcc.let.uss.umt.service.UserManageVO;
@@ -67,7 +72,7 @@ public class APILoginContoller {
//테스트를 위한 값 선언
userId = "std02@forwiz.com";
- key = "std02@forwiz.com1106490137E234AF19E376481D60C0A7";
+ key = "std02@forwiz.comnPPp8JU56YuznXtm91YlcItGzg52zxNVax6aS6OrsaWZzSV6xPnMKnL0OOUbJzkg.amV1c19kb21haW4vTE1T";
returnUrl = "/web/main/mainPage.do";
if(userId == null || key == null) {
@@ -223,4 +228,43 @@ public class APILoginContoller {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(response);
}
}
-}
+
+ /**
+ * @methodName : updateMberSeqKey
+ * @description : 찾교 회원 seq 생성
+ * @param adrInnorixFileVO
+ * @return
+ * @throws Exception
+ */
+ @RequestMapping(value = "/web/updateMberSeqKeyAjax.do")
+ public ModelAndView updateMberSeqKeyAjax() throws Exception {
+
+ ModelAndView modelAndView = new ModelAndView();
+ modelAndView.setViewName("jsonView");
+
+ //로그인 권한정보 불러오기
+ LoginVO loginVO = EgovUserDetailsHelper.isAuthenticated()? (LoginVO)EgovUserDetailsHelper.getAuthenticatedUser():null;
+ String userId = loginVO == null ? "" : EgovStringUtil.isNullToString(loginVO.getId());
+ if(loginVO == null) { //비 로그인 상태 일 시 파라미터 없이 e-배움터로 이동
+ modelAndView.addObject("status", "loginN");
+ return modelAndView;
+ }else {
+ //로그인 상태 일 시 seq 업데이트와 파라미터 전달
+ try {
+ LocalDateTime now = LocalDateTime.now();
+ DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSS");
+ String key = now.format(formatter);
+ loginVO.setMberSeq(key);
+ loginService.updateMberSeqKeyAjax(loginVO);
+ modelAndView.addObject("status", "loginY");
+ modelAndView.addObject("user_id", userId);
+ modelAndView.addObject("key", key);
+ return modelAndView;
+ }catch(Exception e) {
+ modelAndView.addObject("status", "fail");
+ return modelAndView;
+ }
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/src/main/resources/egovframework/egovProps/globals_svr.properties b/src/main/resources/egovframework/egovProps/globals_svr.properties
index 73e23ad9..771dd450 100644
--- a/src/main/resources/egovframework/egovProps/globals_svr.properties
+++ b/src/main/resources/egovframework/egovProps/globals_svr.properties
@@ -27,7 +27,7 @@ Globals.Password= edusce#23
Globals.DriverClassName=com.tmax.tibero.jdbc.TbDriver
#\uac1c\ubc1c DB \uc11c\ubc84
-Globals.Url=jdbc:tibero:thin:@172.17.0.55:8629:copydb
+Globals.Url=jdbc:tibero:thin:@172.17.0.10:8629:copydb
# \uc800\uc791\uc704 \ubb38\uc790\uc804\uc1a1 DB(\uac1c\ubc1c)
diff --git a/src/main/resources/egovframework/sqlmap/let/uat/uia/EgovLoginUsr_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/let/uat/uia/EgovLoginUsr_SQL_Tibero.xml
index 708e905c..38ef228e 100644
--- a/src/main/resources/egovframework/sqlmap/let/uat/uia/EgovLoginUsr_SQL_Tibero.xml
+++ b/src/main/resources/egovframework/sqlmap/let/uat/uia/EgovLoginUsr_SQL_Tibero.xml
@@ -429,4 +429,11 @@
WHERE mber_id = #user_id#
AND ESNTL_ID = #key#
+
+
GO
+
+
+
+
GO
+
+
+
+