|
|
@@ -698,10 +698,10 @@ public class ExtmallOrder extends TscBaseDomain {
|
|
|
public void setHypenRecipPhone() {
|
|
|
if (StringUtils.isNotBlank(this.cellPhnno)) {
|
|
|
String tempRecipPhone = this.cellPhnno.replaceAll("-","");
|
|
|
- if (tempCellPhone.length() > 10) {
|
|
|
- this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 7) + "-" + tempCellPhone.substring(7, 11);
|
|
|
+ if (tempRecipPhone.length() > 10) {
|
|
|
+ this.cellPhnno = tempRecipPhone.substring(0, 3) + "-" + tempRecipPhone.substring(3, 7) + "-" + tempRecipPhone.substring(7, 11);
|
|
|
} else {
|
|
|
- this.cellPhnno = tempCellPhone.substring(0, 3) + "-" + tempCellPhone.substring(3, 6) + "-" + tempCellPhone.substring(6, 10);
|
|
|
+ this.cellPhnno = tempRecipPhone.substring(0, 3) + "-" + tempRecipPhone.substring(3, 6) + "-" + tempRecipPhone.substring(6, 10);
|
|
|
}
|
|
|
}
|
|
|
}
|