비밀번호 찾기 확인전 회원가입 여부 확인 로직 추가
This commit is contained in:
parent
ff6288ee68
commit
27d26da985
@ -2597,6 +2597,36 @@ public class EgovLoginController {
|
||||
|
||||
return "web/login/findUserId";
|
||||
}
|
||||
/**
|
||||
* @Method Name : selectUserSttusAjax
|
||||
* @작성일 : 2024. 3. 27.
|
||||
* @작성자 : WYH
|
||||
* @변경이력 :
|
||||
* @Method 설명 : 회원상태 조회 (Y:일반회원, B:이용정지 회원, N:탈퇴회원)
|
||||
*/
|
||||
@RequestMapping(value = { "/web/user/selectUserSttusAjax.do" })
|
||||
public ModelAndView selectUserSttusAjax(@ModelAttribute("searchVO") MjonMsgVO mjonMsgVO
|
||||
, RedirectAttributes redirectAttributes
|
||||
, ModelMap model) throws Exception {
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
try {
|
||||
|
||||
String userId = mjonMsgVO.getUserId();
|
||||
String userSttus = userManageService.selectUserStatusInfoCheck(userId);
|
||||
|
||||
modelAndView.addObject("status", "success");
|
||||
modelAndView.addObject("userSttus", userSttus);
|
||||
|
||||
} catch (Exception e) {
|
||||
modelAndView.addObject("status", "fail");
|
||||
modelAndView.addObject("msg", "인증에 실패하였습니다.");
|
||||
}
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 아이디 비밀번호 찾기 시스템 문자발송
|
||||
@ -2668,6 +2698,15 @@ public class EgovLoginController {
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
if(usedNmList.get(0).getMberSttus() != "Y") {
|
||||
modelAndView.addObject("message", "입력하신 아이디/이름/휴대폰 번호 정보에 맞는 회원이 없습니다.");
|
||||
modelAndView.addObject("result", "fail-check");
|
||||
modelAndView.addObject("resultSts", "0");
|
||||
modelAndView.addObject("resultBlockSts", "0");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
logger.error(e.getMessage(), e);
|
||||
@ -3350,6 +3389,15 @@ public class EgovLoginController {
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
if(usedNmList.get(0).getMberSttus() != "Y") {
|
||||
modelAndView.addObject("message", "입력하신 아이디/이름/휴대폰 번호 정보에 맞는 회원이 없습니다.");
|
||||
modelAndView.addObject("result", "fail-check");
|
||||
modelAndView.addObject("resultSts", "0");
|
||||
modelAndView.addObject("resultBlockSts", "0");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
logger.error(e.getMessage(), e);
|
||||
|
||||
@ -169,6 +169,8 @@ public interface EgovUserManageService {
|
||||
|
||||
public boolean selectUserStatusInfo(String userId) throws Exception;
|
||||
|
||||
public String selectUserStatusInfoCheck(String userId) throws Exception;
|
||||
|
||||
// 결제 여부
|
||||
public int selectPayCountByUser(UserManageVO userManageVO);
|
||||
|
||||
|
||||
@ -469,6 +469,12 @@ public class EgovUserManageServiceImpl extends EgovAbstractServiceImpl implement
|
||||
return status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String selectUserStatusInfoCheck(String userId) throws Exception {
|
||||
String mberSttus = userManageDAO.selectUserStatusInfo(userId);
|
||||
return mberSttus;
|
||||
}
|
||||
|
||||
// 결제 여부
|
||||
@Override
|
||||
public int selectPayCountByUser(UserManageVO userManageVO) {
|
||||
@ -885,4 +891,5 @@ public class EgovUserManageServiceImpl extends EgovAbstractServiceImpl implement
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -554,6 +554,7 @@
|
||||
a.mber_Id AS emplyrId
|
||||
, DATE_FORMAT(a.SBSCRB_DE, '%Y-%m-%d') AS sbscrbDeBegin
|
||||
, a.CRTFC_DN_VALUE AS mblDn
|
||||
, a.MBER_STTUS AS mberSttus
|
||||
FROM
|
||||
lettngnrlmber a
|
||||
WHERE 1=1
|
||||
|
||||
@ -137,7 +137,43 @@ function selectUserPw(){
|
||||
return;
|
||||
}
|
||||
|
||||
kmcPopUp();
|
||||
var params={"userId" : userId}
|
||||
$.ajax({
|
||||
type:"POST"
|
||||
, url:"<c:url value='/web/user/selectUserSttusAjax.do'/>"
|
||||
, data:params
|
||||
, dataType:'json'
|
||||
, timeout:(1000*30)
|
||||
, success:function(data){
|
||||
|
||||
if(data.status == 'success'){
|
||||
|
||||
if(data.userSttus =="Y"){
|
||||
kmcPopUp();
|
||||
}else if(data.userSttus =="N"){
|
||||
alert("탈퇴한 회원입니다.");
|
||||
userCheck = false;
|
||||
return userCheck;
|
||||
}else if(data.userSttus == "B"){
|
||||
alert("이용정지 회원입니다.");
|
||||
userCheck = false;
|
||||
return userCheck;
|
||||
}else if(data.userSttus == null){
|
||||
alert("입력하신 아이디/이름 정보에 맞는 회원이 없습니다.");
|
||||
userCheck = false;
|
||||
return userCheck;
|
||||
}
|
||||
|
||||
}else{
|
||||
userCheck = false;
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
alert("회원 정보 조회가 실패되었습니다.");
|
||||
console.log("ERROR : ", e);
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
//문자인증
|
||||
if($('input:radio[name="find_pw"]:checked').val() == 'findPw_Phone'){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user