Quellcode durchsuchen

하이픈 적용

yujung vor 4 Jahren
Ursprung
Commit
17da62399d
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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);
 			}
 		}
 	}