|
@@ -685,10 +685,11 @@ public class ExtmallOrder extends TscBaseDomain {
|
|
|
// 휴대폰 번호 대쉬 붙이기
|
|
// 휴대폰 번호 대쉬 붙이기
|
|
|
public void setHypenCellPhone() {
|
|
public void setHypenCellPhone() {
|
|
|
if (StringUtils.isNotBlank(this.cellPhnno)) {
|
|
if (StringUtils.isNotBlank(this.cellPhnno)) {
|
|
|
- if (this.cellPhnno.length() > 10) {
|
|
|
|
|
- this.cellPhnno = this.cellPhnno.substring(0, 3) + "-" + this.cellPhnno.substring(3, 7) + "-" + this.cellPhnno.substring(7, 11);
|
|
|
|
|
|
|
+ String tempCellPhone = this.cellPhnno.replaceAll("-","");
|
|
|
|
|
+ if (tempCellPhone.length() > 10) {
|
|
|
|
|
+ this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 7) + "-" + tempCellPhone.substring(7, 11);
|
|
|
} else {
|
|
} else {
|
|
|
- this.cellPhnno = this.cellPhnno.substring(0, 3) + "-" + this.cellPhnno.substring(3, 6) + "-" + this.cellPhnno.substring(6, 10);
|
|
|
|
|
|
|
+ this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 6) + "-" + tempCellPhone.substring(6, 10);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -696,10 +697,11 @@ public class ExtmallOrder extends TscBaseDomain {
|
|
|
// 휴대폰 번호 대쉬 붙이기
|
|
// 휴대폰 번호 대쉬 붙이기
|
|
|
public void setHypenRecipPhone() {
|
|
public void setHypenRecipPhone() {
|
|
|
if (StringUtils.isNotBlank(this.cellPhnno)) {
|
|
if (StringUtils.isNotBlank(this.cellPhnno)) {
|
|
|
- if (this.recipPhnno.length() > 10) {
|
|
|
|
|
- this.recipPhnno = this.recipPhnno.substring(0, 3) + "-" + this.recipPhnno.substring(3, 7) + "-" + this.recipPhnno.substring(7, 11);
|
|
|
|
|
|
|
+ String tempRecipPhone = this.cellPhnno.replaceAll("-","");
|
|
|
|
|
+ if (tempCellPhone.length() > 10) {
|
|
|
|
|
+ this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 7) + "-" + tempCellPhone.substring(7, 11);
|
|
|
} else {
|
|
} else {
|
|
|
- this.recipPhnno = this.recipPhnno.substring(0, 3) + "-" + this.recipPhnno.substring(3, 6) + "-" + this.recipPhnno.substring(6, 10);
|
|
|
|
|
|
|
+ this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 6) + "-" + tempCellPhone.substring(6, 10);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|