|
|
@@ -1,5 +1,6 @@
|
|
|
package com.style24.persistence.domain;
|
|
|
|
|
|
+import com.style24.core.support.util.CryptoUtils;
|
|
|
import com.style24.core.support.util.MaskingUtils;
|
|
|
import com.style24.persistence.TscBaseDomain;
|
|
|
import com.style24.scm.support.security.session.TssSession;
|
|
|
@@ -66,20 +67,36 @@ public class Counsel extends TscBaseDomain {
|
|
|
private String termStdt; // 검색시작날짜
|
|
|
private String termEddt; // 검색끝날짜
|
|
|
|
|
|
+ // 암호화 대상 복호화 처리
|
|
|
+ public String getCustNm() {
|
|
|
+ this.custNm = CryptoUtils.decryptAES(this.custNm);
|
|
|
+ return this.custNm;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCellPhnno() {
|
|
|
+ this.cellPhnno = CryptoUtils.decryptAES(this.cellPhnno);
|
|
|
+ return this.cellPhnno;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getEmail() {
|
|
|
+ this.email = CryptoUtils.decryptAES(this.email);
|
|
|
+ return this.email;
|
|
|
+ }
|
|
|
+
|
|
|
public String getMaskingCustId() {
|
|
|
return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.id(custId) : custId;
|
|
|
}
|
|
|
|
|
|
public String getMaskingCustNm() {
|
|
|
- return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.name(custNm) : custNm;
|
|
|
+ return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.name(getCustNm()) : getCustNm();
|
|
|
}
|
|
|
|
|
|
public String getMaskingCellPhnno() {
|
|
|
- return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.phoneNo(cellPhnno) : cellPhnno;
|
|
|
+ return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.phoneNo(getCellPhnno()) : getCellPhnno();
|
|
|
}
|
|
|
|
|
|
public String getMaskingEmail() {
|
|
|
- return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.email(email) : email;
|
|
|
+ return TssSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.email(getEmail()) : getEmail();
|
|
|
}
|
|
|
|
|
|
}
|