회원정보 수정에서 주소 제거

This commit is contained in:
김현욱
2026-01-02 15:53:43 +09:00
parent abf74d996b
commit d9a33f8dc5
7 changed files with 142 additions and 104 deletions

View File

@@ -62,6 +62,8 @@ import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static com.wb.domainserver.util.string.StringUtil.isEmpty;
/**
*
* 마이페이지 회원
@@ -746,7 +748,10 @@ public class MyMbrController {
throw new WnbtRestException(ValidateResultConverter.convert(bindingResult, gconeMessageSource));
}
vo.setMbtlnb(vo.getMbtlnb().replace("-",""));
if(!isEmpty(vo.getMbtlnb())){
vo.setMbtlnb(vo.getMbtlnb().replace("-",""));
}
//모바일일 시 진행
if("mobile".equals(mymbrVO.getUtilDv())){
if("01".equals(user.getSysDvCd())){
@@ -762,11 +767,15 @@ public class MyMbrController {
// Map<String, Object> resultMap = responseHandler.handleResponseAsMap(
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMbrMbtlnbCompare", mymbrVO)
// );
int result = service.selectBOMbrMbtlnbCompare(vo);
// int result = service.selectBOMbrMbtlnbCompare(vo);
int result = service.selectBOMbrEmailCompare(vo);
if(result == 0){
if(!"Y".equals(mymbrVO.getMbtlnbChngAt())){
throw new WnbtRestException("휴대폰 인증이 필요합니다.");
if(!"Y".equals(mymbrVO.getEmailChngAt())){
throw new WnbtRestException("이메일 인증이 필요합니다.");
}
// if(!"Y".equals(mymbrVO.getMbtlnbChngAt())){
// throw new WnbtRestException("휴대폰 인증이 필요합니다.");
// }
}
}
@@ -854,7 +863,7 @@ public class MyMbrController {
bowithdrawalVO.setRegistIp(ip);
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
if (StringUtil.isEmpty(bowithdrawalVO.getSopmalCd())) {//사용자
if (isEmpty(bowithdrawalVO.getSopmalCd())) {//사용자
bowithdrawalVO.setSopmalCd(user.getSopmalCd());
}
bowithdrawalVO.setRegusr(user.getUserInnb());

View File

@@ -61,6 +61,9 @@ public class MyMbrVO extends AbstractVO {
/** 휴대폰 번호 변경 여부*/
private String mbtlnbChngAt;
/** 이메일 변경 여부*/
private String emailChngAt;
/** SMS수신여부 */
private String smsRecptnAt;
@@ -68,7 +71,7 @@ public class MyMbrVO extends AbstractVO {
private String telnb;
/** 우편번호 */
@NotBlank(message = "우편번호")
// @NotBlank(message = "우편번호")
private String zip;
/** 도로명; 지번 */
@@ -82,7 +85,7 @@ public class MyMbrVO extends AbstractVO {
private String rnmAdres;
/** 상세주소 */
@NotBlank(message = "상세주소")
// @NotBlank(message = "상세주소")
private String dtlAdres;
/** 성별 */