Bladeren bron

탈퇴처리 수정

jsshin 5 jaren geleden
bovenliggende
commit
39fb6da0cb

+ 2 - 0
src/main/java/com/style24/core/biz/service/TscCustomerService.java

@@ -2,6 +2,7 @@ package com.style24.core.biz.service;
 
 import com.gagaframework.web.parameter.GagaMap;
 import com.style24.core.biz.dao.TscCustomerDao;
+import com.style24.core.support.util.CryptoUtils;
 import com.style24.persistence.domain.CustContactHst;
 import com.style24.persistence.domain.Customer;
 import lombok.extern.slf4j.Slf4j;
@@ -102,6 +103,7 @@ public class TscCustomerService {
 			result.setString("resultMessage", "진행중인 거래가 있습니다. 진행중인 거래를 완료 후 탈퇴 신청을 해주세요.");
 			return result;
 		}
+		customer.setEncodedCustNm(CryptoUtils.encryptAES("탈퇴"));
 
 		// 3.고객정보 이력 생성
 		customerDao.createCustomerHistory(customer);

+ 7 - 1
src/main/java/com/style24/persistence/mybatis/shop/TscCustomer.xml

@@ -304,11 +304,12 @@
 		WHERE  CUST_NO = #{custNo}
 	</insert>
 
-	<!-- 회원 탈퇴 개인정보 공백 처리 -->
+	<!-- 회원 탈퇴 개인정보 처리 -->
 	<update id="updateCustomerSecedeInfo" parameterType="Customer">
 		/* TscCustomer.updateCustomerSecedeInfo */
 		UPDATE TB_CUSTOMER
 		SET    CUST_ID = CONCAT('secede_cust_',#{custNo})
+		     , CUST_NM = #{encodedCustNm}
 		     , CUST_STAT = #{custStat}
 		     , SECEDE_RSN = #{secedeRsn}
 		     , SECEDE_DTL_RSN = #{secedeDtlRsn}
@@ -317,10 +318,15 @@
 		     , SEX_GB = NULL
 		     , CELL_PHNNO = NULL
 		     , EMAIL = NULL
+		     , EMAIL_AGREE_YN = 'N'
+		     , EMAIL_AGREE_DT = NULL
+		     , APP_AGREE_YN = 'N'
+		     , APP_AGREE_DT = NULL
 		     , HOME_ZIPCODE = NULL
 		     , HOME_BASE_ADDR = NULL
 		     , HOME_DTL_ADDR = NULL
 		     , CI = NULL
+		     , CUST_STAT = #{custStat} -- G104_30
 		WHERE  CUST_NO = #{custNo}
 	</update>