fix: 유저 관련 수정

main
이범준 1 year ago
parent d3730e9a68
commit 5f0f250bab

@ -113,14 +113,13 @@ public interface XitFrameUnitService {
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param user_se * @param uniqId
* @param id
* @param password void * @param password void
* @author: * @author:
* @date: 2020. 3. 24. * @date: 2020. 3. 24.
*/ */
public void modifyUserPasswordByUserSe(USER_SE user_se, String id, String password); public void modifyUserPassword(String uniqId, String password);

@ -221,12 +221,12 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
} }
@Override @Override
public void modifyUserPasswordByUserSe(USER_SE user_se, String id, String password) { public void modifyUserPassword(String uniqid, String password) {
/** /**
* *
*/ */
if (XitCmmnUtil.isEmpty(id)) if (XitCmmnUtil.isEmpty(uniqid))
throw new RuntimeException("아이디(은)는 필수조건 입니다."); throw new RuntimeException("아이디(은)는 필수조건 입니다.");
if (XitCmmnUtil.isEmpty(password)) if (XitCmmnUtil.isEmpty(password))
throw new RuntimeException("비밀번호(은)는 필수조건 입니다."); throw new RuntimeException("비밀번호(은)는 필수조건 입니다.");
@ -234,22 +234,11 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
/** /**
* *
*/ */
switch (user_se) { XitUserInfoVO userUsrVO = new XitUserInfoVO();
case GNR: // 일반회원 userUsrVO.setUserId(uniqid);
userUsrVO.setPasswd(password);
break; xitFrameCrudService.modifyXitUserInfo(userUsrVO);
case ENT: // 기업회원
break;
case USR: // 업무사용자
XitUserInfoVO userUsrVO = new XitUserInfoVO();
userUsrVO.setUserId(id);
userUsrVO.setPasswd(password);
xitFrameCrudService.modifyXitUserInfo(userUsrVO);
break;
default:
break;
}
} }

@ -232,18 +232,9 @@ public class XitLoginServiceBean extends AbstractServiceBean implements XitLogin
/** /**
* *
*/ */
//사용자구분별 비밀번호 update //비밀번호 update
switch (vo.getUserSe()) { xitFrameUnitService.modifyUserPassword(vo.getUniqId(), encNewPassword);
case "GNR": //일반회원
xitFrameUnitService.modifyUserPasswordByUserSe(USER_SE.GNR, vo.getId(), encNewPassword);
break;
case "ENT": //기업회원
xitFrameUnitService.modifyUserPasswordByUserSe(USER_SE.ENT, vo.getId(), encNewPassword);
break;
case "USR": //업무사용자
xitFrameUnitService.modifyUserPasswordByUserSe(USER_SE.USR, vo.getId(), encNewPassword);
break;
}
//신규 비밀번호 Set //신규 비밀번호 Set
vo.setPasswd(newpassword); vo.setPasswd(newpassword);

Loading…
Cancel
Save