Ver Fonte

암복화 기능 개발 중

jsshin há 5 anos atrás
pai
commit
13c1b3d9ee

+ 8 - 0
src/main/java/com/style24/admin/biz/service/TsaCustomerService.java

@@ -5,6 +5,7 @@ import com.style24.admin.biz.dao.TsaCustomerDao;
 import com.style24.admin.support.security.session.TsaSession;
 import com.style24.core.biz.service.TscCustomerService;
 import com.style24.core.support.env.TscConstants;
+import com.style24.core.support.util.CryptoUtils;
 import com.style24.persistence.domain.Counsel;
 import com.style24.persistence.domain.Coupon;
 import com.style24.persistence.domain.CustContactHst;
@@ -89,6 +90,13 @@ public class TsaCustomerService {
 		customer.setRegNo(userNo);
 		customer.setUpdNo(userNo);
 
+		customer.setCustNm(CryptoUtils.encryptAES(customer.getCustNm()));
+		customer.setBirthYmd(CryptoUtils.encryptAES(customer.getBirthYmd()));
+		customer.setEmail(CryptoUtils.encryptAES(customer.getEmail()));
+		customer.setCellPhnno(CryptoUtils.encryptAES(customer.getCellPhnno()));
+		customer.setHomeBaseAddr(CryptoUtils.encryptAES(customer.getHomeBaseAddr()));
+		customer.setHomeDtlAddr(CryptoUtils.encryptAES(customer.getHomeDtlAddr()));
+
 		// 고객 이력 생성
 		coreCustomerService.createCustomerHistory(customer);
 

+ 0 - 2
src/main/java/com/style24/admin/biz/web/TsaCustomerController.java

@@ -313,7 +313,6 @@ public class TsaCustomerController extends TsaBaseController {
 	public GagaMap getCustomerActiveList(@RequestBody CustomerSearch customerSearch) {
 		GagaMap result = new GagaMap();
 		customerSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
-		log.info("customerSearch.toString() {}", customerSearch.toString());
 		customerSearch.setPageable(new TscPageRequest(customerSearch.getPageNo()-1, customerSearch.getPageSize()));
 		customerSearch.getPageable().setTotalCount(customerService.getCustomerActiveListCount(customerSearch));
 		TscSession.setAttribute("maskingYn", TsaSession.getInfo().getMaskingYn());
@@ -412,7 +411,6 @@ public class TsaCustomerController extends TsaBaseController {
 	@ResponseBody
 	public Customer getCustomerInfo(@PathVariable Integer custNo) {
 		TscSession.setAttribute("maskingYn", TsaSession.getInfo().getMaskingYn());
-
 		return customerService.getCustomerInfo(custNo);
 	}
 

+ 2 - 1
src/main/webapp/WEB-INF/views/customer/CustomerDetailForm.html

@@ -1008,7 +1008,8 @@
 		if (customer.smsAgreeYn === orgData.smsAgreeYn) {
 			customer.smsAgreeYn = '';
 		}
-
+		customer.custNm = orgData.custNm;
+		customer.sexGb = orgData.sexGb;
 		// 마케팅 수신여부가 기존하고 바꼈는지 확인