diff --git a/src/main/java/kr/xit/fims/framework/biz/cmm/dao/XitFrameUnitMapper.java b/src/main/java/kr/xit/fims/framework/biz/cmm/dao/XitFrameUnitMapper.java index 9c040a66..e090d64b 100644 --- a/src/main/java/kr/xit/fims/framework/biz/cmm/dao/XitFrameUnitMapper.java +++ b/src/main/java/kr/xit/fims/framework/biz/cmm/dao/XitFrameUnitMapper.java @@ -1,6 +1,7 @@ package kr.xit.fims.framework.biz.cmm.dao; import kr.xit.fims.framework.biz.cmm.XitBbsVO; +import kr.xit.fims.framework.biz.mng.user.XitUserInfoVO; import kr.xit.fims.framework.core.XitRollingNotiVO; import org.egovframe.rte.psl.dataaccess.mapper.Mapper; @@ -75,4 +76,6 @@ public interface XitFrameUnitMapper { * @date: 2020. 10. 14. */ public List findLatestBbsList(XitRollingNotiVO xitRollingNotiVO); + + public XitUserInfoVO findXitUserInfoByAccountInfo(XitUserInfoVO userUsrVO); } diff --git a/src/main/java/kr/xit/fims/framework/biz/cmm/service/XitFrameUnitService.java b/src/main/java/kr/xit/fims/framework/biz/cmm/service/XitFrameUnitService.java index c333b9ba..3a2a91f1 100644 --- a/src/main/java/kr/xit/fims/framework/biz/cmm/service/XitFrameUnitService.java +++ b/src/main/java/kr/xit/fims/framework/biz/cmm/service/XitFrameUnitService.java @@ -34,7 +34,9 @@ public interface XitFrameUnitService { * @date: 2020. 3. 23. */ public XitUserInfoVO findUserInfo(String uniqId); - + + public XitUserInfoVO findUserByAccountInfo(XitUserInfoVO userUsrVO); + /** *
메소드 설명: 사용자 구분별 사용중인 사용자 조회
 	 *	-사용자구분에 따라 일반/기업/업무사용자 테이블에서 사용자정보를 조회 한다. 
diff --git a/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitFrameUnitServiceBean.java b/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitFrameUnitServiceBean.java
index f4fdcb89..43767ce0 100644
--- a/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitFrameUnitServiceBean.java
+++ b/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitFrameUnitServiceBean.java
@@ -81,7 +81,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
 		XitLoginVO loginVO = null;
 		XitUserInfoVO userUsrVO = new XitUserInfoVO();
 		userUsrVO.setUserAcnt(accountId);
-		userUsrVO = xitFrameCrudService.findXitUserInfo(userUsrVO);
+		userUsrVO = this.findUserByAccountInfo(userUsrVO);
 
 		// "회원가입승인" 상태인지 확인
 		if (XitCmmnUtil.notEmpty(userUsrVO) && "P".equals(userUsrVO.getStts())) {
@@ -102,6 +102,11 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
 		 */
 		return loginVO;
 	}
+	@Override
+	public XitUserInfoVO findUserByAccountInfo(XitUserInfoVO userUsrVO){
+		XitUserInfoVO result = xitFrameUnitMapper.findXitUserInfoByAccountInfo(userUsrVO);
+		return result;
+	}
 
 	@Override
 	public XitLoginVO findUserInUseByAccountInfo(String jijache, String name, String email) {
diff --git a/src/main/java/kr/xit/fims/framework/biz/cmm/web/XitLoginController.java b/src/main/java/kr/xit/fims/framework/biz/cmm/web/XitLoginController.java
index 218b42d8..08297633 100644
--- a/src/main/java/kr/xit/fims/framework/biz/cmm/web/XitLoginController.java
+++ b/src/main/java/kr/xit/fims/framework/biz/cmm/web/XitLoginController.java
@@ -115,8 +115,8 @@ public class XitLoginController extends AbstractController {
 			HttpServletRequest request, ModelMap model, @RequestParam Map paraMap) throws Exception {
 
 		String message = null;
-		
-		
+
+		System.out.println("!!!e");
 		/**
 		 * 유효성 확인
 		 * 	-비인증 상태에서 인가되지 않은 URL 호출에 대한 처리
@@ -125,9 +125,10 @@ public class XitLoginController extends AbstractController {
 		 */
 		//비인증 상태에서 인가되지 않은 URL 호출에 대한 처리
 		if(XitCmmnUtil.isEmpty(paraMap)) {
+			System.out.println("!!!f");
  			return "forward:/login/accessDenied.do";
 		}
-		
+		System.out.println("!!!g");
 		
 		/**
 		 * 처리
@@ -136,9 +137,11 @@ public class XitLoginController extends AbstractController {
 		try {
 			// 로그인 처리
 			xitLoginVO = xitLoginService.actionLogin(loginVO);
+			System.out.println("!!!h");
 		} catch (Exception e) {
 			log.debug(String.format("로그인 처리 실패 : %s", e.getMessage()));
 			message = e.getMessage();
+			System.out.println("!!!i");
 		}
 
 		
@@ -147,6 +150,7 @@ public class XitLoginController extends AbstractController {
 		 */
 		// 로그인 정보/정책에 따라 응답페이지 분기
 		if (xitLoginVO != null && xitLoginVO.getId() != null && !"".equals(xitLoginVO.getId())) {
+			System.out.println("!!!j");
 			// session Set
 			request.getSession().setAttribute("XitLoginSession", xitLoginVO);
 
@@ -160,30 +164,27 @@ public class XitLoginController extends AbstractController {
 				springSecurity.setPasswordParameter("xit_security_password");
 				springSecurity.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher(
 						request.getServletContext().getContextPath() + "/xit_security_login", "POST"));
-
+				System.out.println("!!!l");
 			} else {
+				System.out.println("!!!k");
 				throw new IllegalStateException("No AuthenticationProcessingFilter");
 			}
-
+			System.out.println("!!!a");
 			springSecurity.doFilter(new RequestWrapperForSecurity(request,
 					xitLoginVO.getUniqId(),
 					xitLoginVO.getPasswd()),
 					response, null);
 
-			
+			System.out.println("!!!b");
 			xitLoginService.actionLoginSuccess();//로그인 Log 생성
 			// 2. 메인 페이지 이동
-			/* ===============================
-			 * 2020.11.20 박민규
-			 *  사용자 유형별 메인페이지 설정 추가
-			 *   -사유: 사용자유형별 메인페이지를 설정하였을 경우 해당 경로로 이동시키도록 하기 위함.
-			 =============================== */
-			//2020.11.20. 주석처리
-//			String url = XitProperties.getProperty("Globals.Xit.MainPage");
+
+			System.out.println("!!!c");
 			String url = this.getMainPageUrlByUserSe();
 			return "forward:"+url; // 성공 시 페이지.. (redirect 불가)
 
 		} else {
+			System.out.println("!!!d");
 			model.addAttribute("message", message==null?xitMessageSource.getMessage("fail.common.login"):message);
 
 			return LOGIN_PAGE;
diff --git a/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml b/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml
index b15f9085..4de91f15 100644
--- a/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml
+++ b/src/main/resources/sql/mapper/framework/cmm/XitFrameUnit-mysql-mapper.xml
@@ -152,4 +152,38 @@
 			AND USE_YN            = #{useYn        }
 		ORDER BY REG_DT DESC
 	
+    
 
diff --git a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/XitMain.jsp b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/XitMain.jsp
index 4277a60d..da5ad970 100644
--- a/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/XitMain.jsp
+++ b/src/main/webapp/WEB-INF/jsp/fims/framework/biz/cmm/XitMain.jsp
@@ -17,7 +17,9 @@
             
             
- [] + + [] +