• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
chominsoo4245 / mjon_git star
Forked from hylee / mjon_git
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
mjon_gitsrcmainjavaitnletmjomsgdataservicePhoneVO.java
Download as .zip file
File name
Commit message
Commit date
DATABASE
mjon_git
2023-06-12
src/main
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
.codetogether.ignore
mjon_git
2023-06-12
.gitignore
gitignore 적용
2023-06-12
pom.xml
mjon_git
2023-06-12
File name
Commit message
Commit date
java
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
resources
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
webapp
Merge branch 'hylee'
2023-07-24
File name
Commit message
Commit date
egovframework
mjon_git
2023-06-12
itn
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
File name
Commit message
Commit date
com
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
let
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
web
이준호 문자온 커밋
2023-07-12
File name
Commit message
Commit date
cop
이지우 - XSS 필터링 처리 : 기존 인터셉터 정규식 수정, 사용자 게시글 상세에 unscript 적용
2023-07-18
crypto/web
mjon_git
2023-06-12
fax
팩스 발송내역 상세 페이징 오류 수정
2023-07-17
hangulparser
mjon_git
2023-06-12
kakao
알림톡 슬랙 메시지 등록 기능 추가
2023-07-10
komoran
mjon_git
2023-06-12
lett
mjon_git
2023-06-12
mail
휴면회원 SMS발송 기능 추가 작업중
2023-07-18
main
대시보드 관리자로그관리 성능개선
2023-07-24
mjo
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
module/base
mjon_git
2023-06-12
org
mjon_git
2023-06-12
schdlr/service
첫결제 스미싱의심 지정기능 추가(휴대폰, 전용계좌)
2023-07-10
sec
mjon_git
2023-06-12
solr
mjon_git
2023-06-12
sts
mjon_git
2023-06-12
sym
대시보드 관리자로그관리 성능개선
2023-07-24
uat
본인인증시 DN으로 회원 조회가 되도록 수정
2023-07-26
uss
회원목록에 이용정지회원 금일, 금년 잔액 합계 표시기능 추가
2023-07-24
utl
휴면회원 SMS발송 기능 추가 작업중
2023-07-18
File name
Commit message
Commit date
addr
주소록 대량등록 치환문자 바이트수 계산로직 수정
2023-07-20
addragency
mjon_git
2023-06-12
apikey
feat:사용자 API소개 페이지 퍼블 적용
2023-07-24
block
간편결제 설정 및 하드코딩 제거
2023-07-14
cert
mjon_git
2023-06-12
conf
문자전송시 B라인 운영여부 체크
2023-06-21
dwn/web
mjon_git
2023-06-12
event
간편결제 설정 및 하드코딩 제거
2023-07-14
kisa
mjon_git
2023-06-12
mjocommon
알림톡 전송지연 기능 추가
2023-07-07
msg
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
msgCustom
mjon_git
2023-06-12
msgagent
전용전송사 변경시 관리자메모 추가
2023-06-20
msgcampain
선거문자 비로그인시 발신번호 조회가 안되도록 수정
2023-07-27
msgdata
엑셀불러오기 이름, 치환1~4 바이트수계산 로직 수정
2023-07-24
msgsent
mjon_git
2023-06-12
pay
문자발송화면에 등급제 기능 추가
2023-07-18
paykgm/service
mjon_git
2023-06-12
payva
mjon_git
2023-06-12
rejt
mjon_git
2023-06-12
reservmsg
알림톡 발송결과 엑셀 다운로드 결과 출력 수정
2023-07-24
scheduler/service
mjon_git
2023-06-12
spammsg
mjon_git
2023-06-12
sttst/service
mjon_git
2023-06-12
symbol
mjon_git
2023-06-12
tax
mjon_git
2023-06-12
temp/service
mjon_git
2023-06-12
test
문자발송화면에 등급제 기능 추가
2023-07-18
File name
Commit message
Commit date
service
문자발송 예약 문자 스미싱 및 스팸 발송 딜레이 기능 - 사용자/관리자 기능 추가
2023-07-11
web
엑셀불러오기 이름, 치환1~4 바이트수계산 로직 수정
2023-07-24
File name
Commit message
Commit date
impl
문자발송 예약 문자 스미싱 및 스팸 발송 딜레이 기능 - 사용자/관리자 기능 추가
2023-07-11
JsonResult.java
mjon_git
2023-06-12
MjonMsgDataService.java
mjon_git
2023-06-12
MjonMsgDataVO.java
mjon_git
2023-06-12
MjonMsgReturnVO.java
mjon_git
2023-06-12
PhoneVO.java
mjon_git
2023-06-12
hylee 2023-06-12 a0b76ca mjon_git UNIX
Raw Open in browser Change history
package itn.let.mjo.msgdata.service; import java.io.Serializable; import java.util.regex.Matcher; import java.util.regex.Pattern; import itn.com.cmm.util.StringUtil; /** * 전화번호 모델 * - 2018-06-22<br> * > 정규식으로 변경<br> * > 4번째 자리 번호 제외<br> * > 하이픈 제거 getter 추가<br> * * @author wimy * */ public class PhoneVO implements Serializable{ private static final long serialVersionUID = -3298463449590604490L; /** * 전화번호 판단 정규식 : 국내 전화번호 규칙 사용 */ public static final String _REG_EXP_PHONE = "(^02.{0}|^01.{1}|^0[0-9]{2})-?([0-9]{3,4})-?([0-9]{4})$"; /** * 8자리 전화번호 */ public static final String _REG_EXP_PHONE_8 = "(^1[0-9]{3})-?([0-9]{4})$"; private String no; private String Name; private String no1 = ""; private String no2 = ""; private String no3 = ""; //private String no4 = ""; public String getNo() { if (this.no == null) this.splitPhone(); return this.no; } public void setNo(String no) { this.no = no; this.splitPhone(); } /** * [읽기전용] 하이픈 제거된 전화번호 * @return */ public String getNoWithoutHyphen() { return this.getNo().replaceAll("-", ""); } /** * split no number */ private void splitPhone() { if (this.no == null) this.no = ""; if (this.no.equals("") && !StringUtil.isEmpty(this.no1) && !StringUtil.isEmpty(this.no2) && !StringUtil.isEmpty(this.no3)) this.no = this.no1 + this.no2 + this.no3; Pattern pattern = Pattern.compile(_REG_EXP_PHONE); Matcher match = pattern.matcher(this.no); if (match.find()) { this.no = match.replaceAll("$1-$2-$3"); String[] arr = this.no.split("-"); //8자리 전화번호 if (arr[1].length() == 1) { Pattern pattern2 = Pattern.compile(_REG_EXP_PHONE_8); Matcher match2 = pattern2.matcher(this.no.replaceAll("[^\\d]", "")); if (match2.find()) { this.no = match2.replaceAll("$1-$2"); String[] arr2 = this.no.split("-"); this.setNo1(""); this.setNo2(arr2[0]); this.setNo3(arr2[1]); } else { this.no = ""; this.setNo1(""); this.setNo2(""); this.setNo3(""); } } else { this.setNo1(arr[0]); this.setNo2(arr[1]); this.setNo3(arr[2]); } } else { Pattern pattern2 = Pattern.compile(_REG_EXP_PHONE_8); Matcher match2 = pattern2.matcher(this.no.replaceAll("[^\\d]", "")); if (match2.find()) { this.no = match2.replaceAll("$1-$2"); String[] arr2 = this.no.split("-"); this.setNo1(""); this.setNo2(arr2[0]); this.setNo3(arr2[1]); } else { this.no = ""; this.setNo1(""); this.setNo2(""); this.setNo3(""); } } } /** * @return no1 */ public String getNo1() { return this.no1; } /** * @param no1 */ public void setNo1(String no1) { this.no1 = no1; } /** * @return no2 */ public String getNo2() { return this.no2; } /** * @param no2 */ public void setNo2(String no2) { this.no2 = no2; } /** * @return no3 */ public String getNo3() { return this.no3; } /** * @param no3 */ public void setNo3(String no3) { this.no3 = no3; } public String getName() { return Name; } public void setName(String name) { Name = name; } // /** // * @return no4 // */ // public String getNo4() { // if (no4 == null) // splitPhone(); // return this.no4; // } // // /** // * @param no4 // */ // public void setNo4(String no4) { // this.no4 = no4; // } }

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up