|
|
@@ -3,6 +3,8 @@ package com.style24.persistence.domain;
|
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.style24.core.support.util.CryptoUtils;
|
|
|
import com.style24.persistence.TscBaseDomain;
|
|
|
@@ -602,4 +604,15 @@ public class Order extends TscBaseDomain {
|
|
|
@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
|
|
|
private String[] payTypeArr;
|
|
|
|
|
|
+ // 휴대폰 번호 대쉬 붙이기
|
|
|
+ public void setHypenCellPhone() {
|
|
|
+ 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);
|
|
|
+ } else {
|
|
|
+ this.cellPhnno = this.cellPhnno.substring(0, 3) + "-" + this.cellPhnno.substring(3, 6) + "-" + this.cellPhnno.substring(6, 10);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|