fix: 유저 관련 수정

main
이범준 1 year ago
parent 50f17a45db
commit 9775f4a125

@ -42,13 +42,13 @@ public interface XitFrameUnitService {
* : "P"()
* :
* </pre>
* @param user_se
* @param id ID
* @param jijache
* @param accountId ID
* @return XitLoginVO
* @author:
* @date: 2020. 3. 23.
*/
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id);
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId);
/**
* <pre> :
* - // .
@ -58,14 +58,14 @@ public interface XitFrameUnitService {
* :
* :
* </pre>
* @param user_se
* @param jijache
* @param name
* @param email
* @return XitLoginVO
* @author:
* @date: 2020. 3. 24.
*/
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String name, String email);
public XitLoginVO findUserInUseByAccountInfo(String jijache, String name, String email);
/**
* <pre> :
* - // .
@ -75,15 +75,15 @@ public interface XitFrameUnitService {
* :
* :
* </pre>
* @param user_se
* @param id ID
* @param jijache
* @param accountId ID
* @param name
* @param email
* @return XitLoginVO
* @author:
* @date: 2020. 3. 24.
*/
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id, String name, String email);
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId, String name, String email);
/**
* <pre> :
* - // .
@ -96,7 +96,7 @@ public interface XitFrameUnitService {
* :
* </pre>
* @param user_se
* @param id ID
* @param accountId ID
* @param name
* @param email
* @param passwdHint
@ -105,7 +105,7 @@ public interface XitFrameUnitService {
* @author:
* @date: 2020. 3. 24.
*/
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id, String name, String email, String passwdHint, String passwdNsr);
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId, String name, String email, String passwdHint, String passwdNsr);

@ -67,29 +67,20 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id) {
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId) {
/**
*
*/
if (XitCmmnUtil.isEmpty(id))
throw new RuntimeException("아이디(은)는 필수조건 입니다.");
if (XitCmmnUtil.isEmpty(accountId))
throw new RuntimeException("계정아이디(은)는 필수조건 입니다.");
/**
*
*/
XitLoginVO loginVO = null;
switch (user_se) {
case GNR: // 일반회원
break;
case ENT: // 기업회원
break;
case USR: // 업무사용자
XitUserInfoVO userUsrVO = new XitUserInfoVO();
userUsrVO.setUserId(id);
userUsrVO.setUserAcnt(accountId);
userUsrVO = xitFrameCrudService.findXitUserInfo(userUsrVO);
// "회원가입승인" 상태인지 확인
@ -104,10 +95,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
if (XitCmmnUtil.notEmpty(orgnztInfoVO))
loginVO.setOrgnztNm(orgnztInfoVO.getOrgnztNm());
}
break;
default:
break;
}
/**
*
@ -116,7 +104,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String name, String email) {
public XitLoginVO findUserInUseByAccountInfo(String jijache, String name, String email) {
/**
*
*/
@ -128,27 +116,17 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
/**
*
*/
String id = null;
switch (user_se) {
case GNR: // 일반회원
String accountId = null;
break;
case ENT: // 기업회원
break;
case USR: // 업무사용자
XitUserInfoVO userUsrVO = new XitUserInfoVO();
userUsrVO.setUserNm(name);
userUsrVO.setEmlAdrs(email);
List<XitUserInfoVO> listUserInfo = xitFrameCrudService.findXitUserInfos(userUsrVO);
id = XitCmmnUtil.isEmpty(listUserInfo) ? null : listUserInfo.get(0).getUserId();
break;
default:
break;
}
if (XitCmmnUtil.isEmpty(id))
accountId = XitCmmnUtil.isEmpty(listUserInfo) ? null : listUserInfo.get(0).getUserAcnt();
if (XitCmmnUtil.isEmpty(accountId))
throw new RuntimeException("일치하는 회원 정보가 없습니다.");
XitLoginVO loginVO = this.findUserInUseByUserSe(user_se, id);
XitLoginVO loginVO = this.findUserInUseByAccountInfo(jijache, accountId);
/**
*
@ -162,7 +140,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id, String name, String email) {
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId, String name, String email) {
/**
*
*/
@ -174,7 +152,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
/**
*
*/
XitLoginVO loginVO = this.findUserInUseByUserSe(user_se, id);
XitLoginVO loginVO = this.findUserInUseByAccountInfo(jijache, accountId);
/**
*
@ -188,7 +166,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
}
@Override
public XitLoginVO findUserInUseByUserSe(USER_SE user_se, String id, String name, String email, String passwdHint,
public XitLoginVO findUserInUseByAccountInfo(String jijache, String accountId, String name, String email, String passwdHint,
String passwdNsr) {
/**
*
@ -205,7 +183,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
/**
*
*/
XitLoginVO loginVO = this.findUserInUseByUserSe(user_se, id);
XitLoginVO loginVO = this.findUserInUseByAccountInfo(jijache, accountId);
/**
*

@ -38,20 +38,8 @@ public class XitLoginServiceBean extends AbstractServiceBean implements XitLogin
*
*/
XitLoginVO loginVO = null;
switch (vo.getUserSe()) {
case "GNR": //일반회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.GNR, vo.getId());
break;
case "ENT": //기업회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.ENT, vo.getId());
break;
case "USR": //업무사용자
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.USR, vo.getId());
break;
default:
throw new RuntimeException("유효하지 않은 사용자구분 입니다.");
}
loginVO = xitFrameUnitService.findUserInUseByAccountInfo("", vo.getId());
/**
@ -122,19 +110,9 @@ public class XitLoginServiceBean extends AbstractServiceBean implements XitLogin
*
*/
XitLoginVO loginVO = null;
switch (vo.getUserSe()) {
case "GNR": //일반회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.GNR, vo.getName(), vo.getEmail());
break;
case "ENT": //기업회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.ENT, vo.getName(), vo.getEmail());
break;
case "USR": //업무사용자
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.USR, vo.getName(), vo.getEmail());
break;
default:
throw new RuntimeException("유효하지 않은 사용자구분 입니다.");
}
loginVO = xitFrameUnitService.findUserInUseByAccountInfo("", vo.getName(), vo.getEmail());
/**
@ -161,19 +139,8 @@ public class XitLoginServiceBean extends AbstractServiceBean implements XitLogin
*
*/
XitLoginVO loginVO = null;
switch (vo.getUserSe()) {
case "GNR": //일반회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.GNR, vo.getId(), vo.getName(), vo.getEmail());
break;
case "ENT": //기업회원
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.ENT, vo.getId(), vo.getName(), vo.getEmail());
break;
case "USR": //업무사용자
loginVO = xitFrameUnitService.findUserInUseByUserSe(USER_SE.USR, vo.getId(), vo.getName(), vo.getEmail());
break;
default:
throw new RuntimeException("유효하지 않은 사용자구분 입니다.");
}
loginVO = xitFrameUnitService.findUserInUseByAccountInfo("", vo.getId(), vo.getName(), vo.getEmail());
/**

@ -130,7 +130,7 @@ public class XitUserAbsntMngController extends AbstractController {
/**
* <pre> : .</pre>
* @param page
* @param cmd
* @param tilesDef Type(none: tiles )
* @param model
* @return String
@ -173,7 +173,7 @@ public class XitUserAbsntMngController extends AbstractController {
/**
* <pre> : .</pre>
* @param page
* @param cmd
* @param model
* @return String
* @author:

Loading…
Cancel
Save