From 5f0f250bab3e7cef6adf8bbb0053c8a05253b2d6 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 7 Jun 2023 15:14:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9C=A0=EC=A0=80=20=EA=B4=80=EB=A0=A8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/cmm/service/XitFrameUnitService.java | 7 +++--- .../service/bean/XitFrameUnitServiceBean.java | 23 +++++-------------- .../cmm/service/bean/XitLoginServiceBean.java | 15 +++--------- 3 files changed, 12 insertions(+), 33 deletions(-) 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 9aa6db0b..69aa6d02 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 @@ -113,14 +113,13 @@ public interface XitFrameUnitService { /** - *
메소드 설명: 사용자 구분별 사용자 비밀번호 변경
- * @param user_se - * @param id + *
메소드 설명: 사용자 비밀번호 변경
+ * @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); 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 455da33f..93798210 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 @@ -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: // 기업회원 + XitUserInfoVO userUsrVO = new XitUserInfoVO(); + userUsrVO.setUserId(uniqid); + userUsrVO.setPasswd(password); + xitFrameCrudService.modifyXitUserInfo(userUsrVO); - break; - case USR: // 업무사용자 - XitUserInfoVO userUsrVO = new XitUserInfoVO(); - userUsrVO.setUserId(id); - userUsrVO.setPasswd(password); - xitFrameCrudService.modifyXitUserInfo(userUsrVO); - break; - default: - break; - } } diff --git a/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitLoginServiceBean.java b/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitLoginServiceBean.java index 80675d47..b12e1d7a 100644 --- a/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitLoginServiceBean.java +++ b/src/main/java/kr/xit/fims/framework/biz/cmm/service/bean/XitLoginServiceBean.java @@ -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);