瀏覽代碼

고객명 복호화 해서 반환하도록 추가

gagamel 5 年之前
父節點
當前提交
8ca29accf0
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/main/java/com/style24/persistence/domain/Counsel.java

+ 7 - 0
src/main/java/com/style24/persistence/domain/Counsel.java

@@ -1,6 +1,7 @@
 package com.style24.persistence.domain;
 
 import com.style24.admin.support.security.session.TsaSession;
+import com.style24.core.support.util.CryptoUtils;
 import com.style24.core.support.util.MaskingUtils;
 import com.style24.persistence.TscBaseDomain;
 
@@ -74,6 +75,12 @@ 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 getMaskingCustId() {
 		return TsaSession.getInfo().getMaskingYn().equals("Y") ? MaskingUtils.id(custId) : custId;
 	}