휴대폰번호 다중번호 인증 체크 로직
This commit is contained in:
parent
3e2e039c80
commit
4f2a0e28b6
@ -184,6 +184,9 @@ public interface MjonMsgDataService {
|
|||||||
public StatusResponse insertMberCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO);
|
public StatusResponse insertMberCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO);
|
||||||
|
|
||||||
public StatusResponse deleteCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO);
|
public StatusResponse deleteCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO);
|
||||||
|
|
||||||
|
public List<MberCertPhoneVO> selectMberCertPhoneListVO(MberCertPhoneVO mberCertPhoneVO);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -205,7 +205,7 @@ public class MjonMsgDataDAO extends EgovAbstractDAO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SendLogVO selectSysMsgLogCheck(SendLogVO sendLogVO) throws Exception{
|
public SendLogVO selectSysMsgLogCheck(SendLogVO sendLogVO) throws Exception{
|
||||||
return (SendLogVO) select("mjonMsgDAO.selectSysMsgLogCheck",sendLogVO);
|
return (SendLogVO) select("mjonMsgDAO.selectSysMsgLogCheck_new",sendLogVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@ -383,5 +383,10 @@ public class MjonMsgDataDAO extends EgovAbstractDAO {
|
|||||||
public void deleteCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO) {
|
public void deleteCertPhoneInfo(MberCertPhoneVO mberCertPhoneVO) {
|
||||||
update("mjonMsgDataDAO.deleteCertPhoneInfo", mberCertPhoneVO);
|
update("mjonMsgDataDAO.deleteCertPhoneInfo", mberCertPhoneVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public List<MberCertPhoneVO> selectMberCertPhoneListVO(MberCertPhoneVO mberCertPhoneVO) {
|
||||||
|
return (List<MberCertPhoneVO>) list("mjonMsgDataDAO.selectMberCertPhoneListVO", mberCertPhoneVO);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3177,5 +3177,10 @@ public class MjonMsgDataServiceImpl extends EgovAbstractServiceImpl implements M
|
|||||||
mjonMsgDataDAO.deleteCertPhoneInfo(mberCertPhoneVO);
|
mjonMsgDataDAO.deleteCertPhoneInfo(mberCertPhoneVO);
|
||||||
return new StatusResponse(HttpStatus.OK, "삭제하였습니다.", LocalDateTime.now());
|
return new StatusResponse(HttpStatus.OK, "삭제하였습니다.", LocalDateTime.now());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MberCertPhoneVO> selectMberCertPhoneListVO(MberCertPhoneVO mberCertPhoneVO) {
|
||||||
|
return mjonMsgDataDAO.selectMberCertPhoneListVO(mberCertPhoneVO);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,6 +109,7 @@ import itn.let.uat.uap.service.EgovLoginPolicyService;
|
|||||||
import itn.let.uat.uap.service.LoginPolicyVO;
|
import itn.let.uat.uap.service.LoginPolicyVO;
|
||||||
import itn.let.uat.uia.service.AuthCertVO;
|
import itn.let.uat.uia.service.AuthCertVO;
|
||||||
import itn.let.uat.uia.service.EgovLoginService;
|
import itn.let.uat.uia.service.EgovLoginService;
|
||||||
|
import itn.let.uat.uia.service.MberCertPhoneVO;
|
||||||
import itn.let.uss.umt.service.EgovMberManageService;
|
import itn.let.uss.umt.service.EgovMberManageService;
|
||||||
import itn.let.uss.umt.service.EgovUserManageService;
|
import itn.let.uss.umt.service.EgovUserManageService;
|
||||||
import itn.let.uss.umt.service.MberManageConfigVO;
|
import itn.let.uss.umt.service.MberManageConfigVO;
|
||||||
@ -2043,9 +2044,23 @@ public class EgovLoginController {
|
|||||||
|
|
||||||
String message = "로그인 성공했습니다.";
|
String message = "로그인 성공했습니다.";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* 일시 : 2024.11.18
|
||||||
|
* 내용 : 다중 인증번호 조회
|
||||||
|
* 작업자 : 이호영
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
List<MberCertPhoneVO> mberCertPhoneList = mjonMsgDataService.selectMberCertPhoneList(resultVO.getId());
|
||||||
|
|
||||||
|
|
||||||
modelAndView.addObject("status", "success");
|
modelAndView.addObject("status", "success");
|
||||||
modelAndView.addObject("msg", message);
|
modelAndView.addObject("msg", message);
|
||||||
modelAndView.addObject("data", resultVO);
|
modelAndView.addObject("data", resultVO);
|
||||||
|
modelAndView.addObject("mberCertPhoneList", mberCertPhoneList);
|
||||||
|
|
||||||
return modelAndView;
|
return modelAndView;
|
||||||
|
|
||||||
@ -3580,6 +3595,11 @@ public class EgovLoginController {
|
|||||||
code = randomCode.append(Integer.toString(random.nextInt(10))).toString();
|
code = randomCode.append(Integer.toString(random.nextInt(10))).toString();
|
||||||
}
|
}
|
||||||
contents = contents.replace("%code%", code);
|
contents = contents.replace("%code%", code);
|
||||||
|
System.out.println("contents : "+ contents);
|
||||||
|
System.out.println("contents : "+ contents);
|
||||||
|
System.out.println("contents : "+ contents);
|
||||||
|
System.out.println("contents : "+ contents);
|
||||||
|
System.out.println("contents : "+ contents);
|
||||||
|
|
||||||
mjonMsgVO.setSmsTxt(contents);
|
mjonMsgVO.setSmsTxt(contents);
|
||||||
mjonMsgVO.setReserveYn("N");
|
mjonMsgVO.setReserveYn("N");
|
||||||
@ -3601,9 +3621,25 @@ public class EgovLoginController {
|
|||||||
userManageVO.setEmplyrNm(mjonMsgVO.getSearchNm());
|
userManageVO.setEmplyrNm(mjonMsgVO.getSearchNm());
|
||||||
userManageVO.setMoblphonNo(mjonMsgVO.getCallTo());
|
userManageVO.setMoblphonNo(mjonMsgVO.getCallTo());
|
||||||
|
|
||||||
List<UserManageVO> usedNmList = userManageService.selectUserIdAjax2(userManageVO);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
boolean TorF = usedNmList.size() > 0 ? true : false;
|
MberCertPhoneVO mberCertPhoneVO = new MberCertPhoneVO();
|
||||||
|
mberCertPhoneVO.setMbtlnum(mjonMsgVO.getCallTo());
|
||||||
|
mberCertPhoneVO.setMberId(mjonMsgVO.getUserId());
|
||||||
|
|
||||||
|
|
||||||
|
List<MberCertPhoneVO> mberCertPhoneList = mjonMsgDataService.selectMberCertPhoneListVO(mberCertPhoneVO);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
boolean TorF = mberCertPhoneList.size() > 0 ? true : false;
|
||||||
|
|
||||||
|
|
||||||
if (!TorF) {
|
if (!TorF) {
|
||||||
@ -3616,7 +3652,8 @@ public class EgovLoginController {
|
|||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
List<UserManageVO> usedNmList = userManageService.selectUserIdAjax2(userManageVO);
|
||||||
if(!usedNmList.get(0).getMberSttus().equals("Y")) {
|
if(!usedNmList.get(0).getMberSttus().equals("Y")) {
|
||||||
|
|
||||||
String mberSttus = usedNmList.get(0).getMberSttus();
|
String mberSttus = usedNmList.get(0).getMberSttus();
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -3774,6 +3774,24 @@
|
|||||||
AND CERT_USE_YN = 'Y'
|
AND CERT_USE_YN = 'Y'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="mjonMsgDataDAO.selectMberCertPhoneListVO" parameterClass="mberCertPhoneVO" resultClass="mberCertPhoneVO">
|
||||||
|
SELECT
|
||||||
|
MBTLNUM AS mbtlnum,
|
||||||
|
'-' AS frstRegistPnttm
|
||||||
|
FROM
|
||||||
|
lettngnrlmber
|
||||||
|
WHERE MBER_ID = #mberId#
|
||||||
|
UNION ALL
|
||||||
|
SELECT
|
||||||
|
MBTLNUM AS mbtlnum,
|
||||||
|
FRST_REGIST_PNTTM AS frstRegistPnttm
|
||||||
|
FROM
|
||||||
|
lettngnrlmber_cert_phone
|
||||||
|
WHERE MBER_ID = #mberId#
|
||||||
|
AND MBTLNUM = #mbtlnum#
|
||||||
|
AND CERT_USE_YN = 'Y'
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="mjonMsgDataDAO.insertMberCertPhoneInfo" parameterClass="mberCertPhoneVO">
|
<insert id="mjonMsgDataDAO.insertMberCertPhoneInfo" parameterClass="mberCertPhoneVO">
|
||||||
|
|
||||||
|
|||||||
@ -178,6 +178,8 @@ function actionLogin(){
|
|||||||
success : function(data) {
|
success : function(data) {
|
||||||
//alert(data.status);
|
//alert(data.status);
|
||||||
//alert(data.data.moblphonNo);
|
//alert(data.data.moblphonNo);
|
||||||
|
console.log('===========');
|
||||||
|
console.log(data.mberCertPhoneList);
|
||||||
|
|
||||||
if (data.status=="success"){
|
if (data.status=="success"){
|
||||||
//번호인증팝업 띄우기
|
//번호인증팝업 띄우기
|
||||||
@ -190,8 +192,14 @@ function actionLogin(){
|
|||||||
$("#input_list_item_5").show();
|
$("#input_list_item_5").show();
|
||||||
$("#input_list_item_6").show();
|
$("#input_list_item_6").show();
|
||||||
|
|
||||||
$("#hp_text2").val(data.data.moblphonNo);
|
// $("#hp_text2").val(data.data.moblphonNo);
|
||||||
|
var $select = $('#hp_text2');
|
||||||
|
data.mberCertPhoneList.forEach(function(item) {
|
||||||
|
$select.append($('<option>', {
|
||||||
|
value: item.mbtlnum, // option의 value 값
|
||||||
|
text: item.mbtlnum // option의 화면에 보이는 텍스트
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
}else if (data.status=="fail"){
|
}else if (data.status=="fail"){
|
||||||
@ -589,8 +597,7 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
|||||||
<label for="list_inputType1" class="label">휴대폰번호</label>
|
<label for="list_inputType1" class="label">휴대폰번호</label>
|
||||||
<!-- <input type="text" id="hp_text2" class="list_inputType1" placeholder="가입휴대폰번호" style="width: 250px;" -->
|
<!-- <input type="text" id="hp_text2" class="list_inputType1" placeholder="가입휴대폰번호" style="width: 250px;" -->
|
||||||
<!-- onfocus="this.placeholder=''" onblur="this.placeholder='가입휴대폰번호'" maxlength="20" readonly> -->
|
<!-- onfocus="this.placeholder=''" onblur="this.placeholder='가입휴대폰번호'" maxlength="20" readonly> -->
|
||||||
<select id="hp_text2" name="callFromList" class="sel_number list_selType1" style="width:70%;">
|
<select id="hp_text2" class="list_selType1" style="width:70%;">
|
||||||
<option value="">등록된 발신 번호가 없습니다.</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="login_del">
|
<div class="login_del">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user