fix: 유저 관련 수정

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

@ -113,14 +113,13 @@ public interface XitFrameUnitService {
/**
* <pre> : </pre>
* @param user_se
* @param id
* <pre> : </pre>
* @param uniqId
* @param password void
* @author:
* @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
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("아이디(은)는 필수조건 입니다.");
if (XitCmmnUtil.isEmpty(password))
throw new RuntimeException("비밀번호(은)는 필수조건 입니다.");
@ -234,22 +234,11 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
/**
*
*/
switch (user_se) {
case GNR: // 일반회원
break;
case ENT: // 기업회원
break;
case USR: // 업무사용자
XitUserInfoVO userUsrVO = new XitUserInfoVO();
userUsrVO.setUserId(id);
userUsrVO.setUserId(uniqid);
userUsrVO.setPasswd(password);
xitFrameCrudService.modifyXitUserInfo(userUsrVO);
break;
default:
break;
}
}

@ -232,18 +232,9 @@ public class XitLoginServiceBean extends AbstractServiceBean implements XitLogin
/**
*
*/
//사용자구분별 비밀번호 update
switch (vo.getUserSe()) {
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;
}
//비밀번호 update
xitFrameUnitService.modifyUserPassword(vo.getUniqId(), encNewPassword);
//신규 비밀번호 Set
vo.setPasswd(newpassword);

Loading…
Cancel
Save