아이디/비밀번호 찾기 수정(1)

This commit is contained in:
김현욱
2025-12-19 17:14:49 +09:00
parent e11797fa1e
commit 736cacae57
8 changed files with 634 additions and 24 deletions

View File

@@ -337,6 +337,9 @@ public interface BOMbrMapper {
public int insertBOPhoneAuth(BOMbrVO vo);
public int selectBOPhoneAuth(BOMbrVO vo);
public int insertBOEmailAuth(BOMbrVO vo);
public int selectBOEmailAuth(BOMbrVO vo);
public void insertBOMbrGradMapping(BOMbrVO mbrVO);
public void insertBOMemberSite(BOMbrVO mbrVO);

View File

@@ -1026,6 +1026,65 @@ public class BOMbrService {
return message;
}
/**
* 이메일 인증번호 생성
*
* @param mbrVO
* @return
* @author
*/
public DataMap insertBOEmailAuth(BOMbrVO vo) {
DataMap message = new DataMap();
int result = 0;
try {
result = mapper.insertBOEmailAuth(vo);
if (result > 0) {
message.put("result", "success");
message.put("sndngInnb", vo.getSndngInnb());
} else {
message.put("result", "fail");
}
} catch (WnbtRestException wre) {
throw new WnbtRestException(wre.getMessage());
} catch (Exception e) {
log.error(e.getMessage(), e);
}
return message;
}
/**
* 이메일 인증
*
* @param mbrVO
* @return
* @author
*/
public DataMap selectBOEmailAuth(BOMbrVO vo) {
DataMap message = new DataMap();
int result = 0;
try {
result = mapper.selectBOEmailAuth(vo);
if (result > 0) {
message.put("result", "success");
} else {
message.put("result", "fail");
}
} catch (WnbtRestException wre) {
throw new WnbtRestException(wre.getMessage());
} catch (Exception e) {
log.error(e.getMessage(), e);
}
return message;
}
/**
* 회원구분코드 조회
*

View File

@@ -191,6 +191,7 @@ public class BOEmailService {
List<BOEmailVO> voListNew = new ArrayList<BOEmailVO>();
BOEmailVO ListOne = voList.get(0);
log.info("이메일 voList get(0) : {}", ListOne);
List<Integer> trgetSndList = mapper.selectBOEmailSndngTrgetSnb(ListOne.getEmailSndngInnb());
log.info("이메일 발송대상 순번 조회 => {}", trgetSndList);

View File

@@ -1372,10 +1372,15 @@ public class BOMssageService {
String smsUseAt = StringUtil.isNullToString(sndngMap.get("smsUseAt"));
String emailUseAt = StringUtil.isNullToString(sndngMap.get("emailUseAt"));
log.debug("카톡여부:문자여부:이메일여부 = {}",ntcntalkUseAt+":"+smsUseAt+":"+emailUseAt);
String ntcntalkSndngFormInnb = StringUtil.isNullToString(sndngMap.get("ntcntalkSndngFormInnb"));
String smsSndngFormInnb = StringUtil.isNullToString(sndngMap.get("smsSndngFormInnb"));
String emailSndngFormInnb = StringUtil.isNullToString(sndngMap.get("emailSndngFormInnb"));
log.debug("processTmpltMssage - paramMapList : {}",paramMapList);
log.debug("processTmpltMssage - emailSndngFormInnb : {}",emailSndngFormInnb);
//전부 미사용 시
boolean allNotY = !"Y".equals(ntcntalkUseAt) && !"Y".equals(smsUseAt) && !"Y".equals(emailUseAt);
@@ -1481,6 +1486,7 @@ public class BOMssageService {
boEmailVO.setSecretKey(boCommonService.selectSecretkey());
//이메일 발송내역 등록(치환코드 치환 x)
// 이메일 발송그룹(GC_EMAIL) 등록
emailMapper.insertBOEmailSndngDtls(boEmailVO);
if (recptnRjctUrl != null) {
@@ -1499,14 +1505,16 @@ public class BOMssageService {
}
try {
//이메일 발송대상 등록
//이메일 발송대상(GC_EMAIL_TO) 등록
emailMapper.insertBOEmailSndngTo(voList);
message.put("getEmailSndngInnb", boEmailVO.getEmailSndngInnb());
message.put("result", "success");
} catch (WnbtRestException wre){
log.debug("이메일 발송 에러1");
throw new WnbtRestException(wre.getMessage());
} catch (Exception e) {
log.debug("이메일 발송 에러2");
log.error(e.getMessage(), e);
}
}