Selaa lähdekoodia

하이픈 적용

yujung 4 vuotta sitten
vanhempi
commit
17da62399d

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