yujung 4 лет назад
Родитель
Сommit
17da62399d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/main/java/com/style24/persistence/domain/ExtmallOrder.java

+ 3 - 3
src/main/java/com/style24/persistence/domain/ExtmallOrder.java

@@ -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);
 			}
 		}
 	}