Просмотр исходного кода

필요없는 기능 삭제 처리

jsshin 4 лет назад
Родитель
Сommit
df2c00c055

+ 0 - 8
src/main/java/com/style24/batch/biz/dao/TsbCustomerDao.java

@@ -217,12 +217,4 @@ public interface TsbCustomerDao {
 	 */
 	Collection<Customer>getComBackNotiTarketList(CustomerSearch customerSearch);
 
-	Collection<Customer>getEncodingCustomer();
-	int updateEncodingCustomer(Customer customer);
-	Collection<Customer>getEncodingDormantCustomer();
-	int updateEncodingDormantCustomer(Customer customer);
-	Collection<Customer>getEncodingSecedeCustomer();
-	int updateEncodingSecedeCustomer(Customer customer);
-	Collection<CustAccount>getEncodingCustAccount();
-	int updateEncodingCustAccount(CustAccount custAccount);
 }

+ 0 - 45
src/main/java/com/style24/batch/biz/job/customer/TsbChangeEncodinglJob.java

@@ -1,45 +0,0 @@
-package com.style24.batch.biz.job.customer;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.style24.batch.biz.job.TsbAbstractJob;
-import com.style24.batch.biz.service.TsbCustomerService;
-
-import lombok.extern.slf4j.Slf4j;
-
-/**
- * 넷퍼시메일 솔루션에 회원정보 연동 처리
- *
- * @author gagamel
- * @since 2021. 5. 10
- */
-@Component
-@Slf4j
-public class TsbChangeEncodinglJob extends TsbAbstractJob<String, String, String> {
-
-	@Autowired
-	private TsbCustomerService customerService;
-
-	@Override
-	public String read() throws Exception {
-		return "OK";
-	}
-
-	@Override
-	public String process(String result) throws Exception {
-		customerService.changeEncodingCustAccount();
-		return result;
-	}
-
-	@Override
-	public String write(String result) throws Exception {
-		return result;
-	}
-
-	@Override
-	public void notify(String result) throws Exception {
-		// Do nothing
-	}
-
-}

+ 0 - 89
src/main/java/com/style24/batch/biz/service/TsbCustomerService.java

@@ -413,93 +413,4 @@ public class TsbCustomerService {
 		return customerDao.getComBackNotiTarketList(customerSearch);
 	}
 
-
-	@Transactional("shopTxnManager")
-	public void changeEncodingCustomerInfo() {
-		Collection <Customer>  customerCollection = customerDao.getEncodingCustomer();
-		for (Customer custInfo: customerCollection) {
-				try {
-					Customer params = new Customer();
-					params.setCustNo(custInfo.getCustNo());
-					params.setEncodedCustNm(CryptoUtils.encryptAES(custInfo.getCustNm()));
-					params.setEncodedSexGb(CryptoUtils.encryptAES(custInfo.getSexGb()));
-					params.setEncodedEmail(CryptoUtils.encryptAES(custInfo.getEmail()));
-					params.setEncodedCellPhnno(CryptoUtils.encryptAES(custInfo.getCellPhnno()));
-					params.setEncodedBirthYmd(CryptoUtils.encryptAES(custInfo.getBirthYmd()));
-					params.setEncodedHomeZipcode(CryptoUtils.encryptAES(custInfo.getHomeZipcode()));
-					params.setEncodedHomeBaseAddr(CryptoUtils.encryptAES(custInfo.getHomeBaseAddr()));
-					params.setEncodedHomeDtlAddr(CryptoUtils.encryptAES(custInfo.getHomeDtlAddr()));
-					customerDao.updateEncodingCustomer(params);
-				} catch (Exception e) {
-					log.error(e.getMessage());
-					log.info("ERROR CUST_NO ====> {}", custInfo.getCustNo());
-
-				}
-		}
-	}
-
-	@Transactional("shopTxnManager")
-	public void changeEncodingDormantCustomerInfo() {
-		Collection <Customer> customerCollection = customerDao.getEncodingDormantCustomer();
-		for (Customer custInfo: customerCollection) {
-				try {
-					Customer params = new Customer();
-					params.setCustNo(custInfo.getCustNo());
-					params.setEncodedCustNm(CryptoUtils.encryptAES(custInfo.getCustNm()));
-					params.setEncodedSexGb(CryptoUtils.encryptAES(custInfo.getSexGb()));
-					params.setEncodedEmail(CryptoUtils.encryptAES(custInfo.getEmail()));
-					params.setEncodedCellPhnno(CryptoUtils.encryptAES(custInfo.getCellPhnno()));
-					params.setEncodedBirthYmd(CryptoUtils.encryptAES(custInfo.getBirthYmd()));
-					params.setEncodedHomeZipcode(CryptoUtils.encryptAES(custInfo.getHomeZipcode()));
-					params.setEncodedHomeBaseAddr(CryptoUtils.encryptAES(custInfo.getHomeBaseAddr()));
-					params.setEncodedHomeDtlAddr(CryptoUtils.encryptAES(custInfo.getHomeDtlAddr()));
-					customerDao.updateEncodingDormantCustomer(params);
-				} catch (Exception e) {
-					log.error(e.getMessage());
-					log.info("ERROR CUST_NO ====> {}", custInfo.getCustNo());
-
-				}
-		}
-	}
-
-	@Transactional("shopTxnManager")
-	public void changeEncodingSecedeCustomerInfo() {
-		Collection <Customer> customerCollection = customerDao.getEncodingSecedeCustomer();
-		for (Customer custInfo: customerCollection) {
-				try {
-					Customer params = new Customer();
-					params.setCustNo(custInfo.getCustNo());
-					params.setEncodedCustNm(CryptoUtils.encryptAES(custInfo.getCustNm()));
-					params.setEncodedSexGb(CryptoUtils.encryptAES(custInfo.getSexGb()));
-					params.setEncodedEmail(CryptoUtils.encryptAES(custInfo.getEmail()));
-					params.setEncodedCellPhnno(CryptoUtils.encryptAES(custInfo.getCellPhnno()));
-					params.setEncodedBirthYmd(CryptoUtils.encryptAES(custInfo.getBirthYmd()));
-					params.setEncodedHomeZipcode(CryptoUtils.encryptAES(custInfo.getHomeZipcode()));
-					params.setEncodedHomeBaseAddr(CryptoUtils.encryptAES(custInfo.getHomeBaseAddr()));
-					params.setEncodedHomeDtlAddr(CryptoUtils.encryptAES(custInfo.getHomeDtlAddr()));
-					customerDao.updateEncodingSecedeCustomer(params);
-				} catch (Exception e) {
-					log.error(e.getMessage());
-					log.info("ERROR CUST_NO ====> {}", custInfo.getCustNo());
-				}
-		}
-	}
-
-	@Transactional("shopTxnManager")
-	public void changeEncodingCustAccount() {
-		Collection <CustAccount> custAccountCollection = customerDao.getEncodingCustAccount();
-		for (CustAccount custAccountInfo: custAccountCollection) {
-				try {
-					CustAccount params = new CustAccount();
-					params.setCustNo(custAccountInfo.getCustNo());
-					params.setEncodedAccountNo(CryptoUtils.encryptAES(custAccountInfo.getAccountNo()));
-					customerDao.updateEncodingCustAccount(params);
-				} catch (Exception e) {
-					log.error(e.getMessage());
-					log.info("ERROR CUST_NO ====> {}", custAccountInfo.getCustNo());
-				}
-		}
-	}
-
-
 }

+ 0 - 91
src/main/java/com/style24/persistence/mybatis/shop/TsbCustomer.xml

@@ -747,95 +747,4 @@
 		                   )
 	</select>
 
-	<!--활동회원 암호화 변경 -->
-	<select id="getEncodingCustomer" resultType="Customer">
-		SELECT CUST_NO
-		     , CUST_NM
-		     , BIRTH_YMD
-		     , SEX_GB
-		     , CELL_PHNNO
-		     , EMAIL
-		     , HOME_ZIPCODE
-		     , HOME_BASE_ADDR
-		     , HOME_DTL_ADDR
-		FROM TB_CUSTOMER
-	</select>
-
-	<update id="updateEncodingCustomer" parameterType="Customer">
-		UPDATE TB_CUSTOMER
-		SET    CUST_NM = #{encodedCustNm}
-		     , SEX_GB = #{encodedSexGb}
-		     , EMAIL = #{encodedEmail}
-		     , CELL_PHNNO = #{encodedCellPhnno}
-		     , BIRTH_YMD = #{encodedBirthYmd}
-		     , HOME_ZIPCODE = #{encodedHomeZipcode}
-		     , HOME_BASE_ADDR = #{encodedHomeBaseAddr}
-		     , HOME_DTL_ADDR = #{encodedHomeDtlAddr}
-		WHERE  CUST_NO = #{custNo}
-	</update>
-
-	<select id="getEncodingDormantCustomer" resultType="Customer">
-		SELECT CUST_NO
-		     , CUST_NM
-		     , BIRTH_YMD
-		     , SEX_GB
-		     , CELL_PHNNO
-		     , EMAIL
-		     , HOME_ZIPCODE
-		     , HOME_BASE_ADDR
-		     , HOME_DTL_ADDR
-		FROM TB_DORMANT_CUST
-	</select>
-
-	<update id="updateEncodingDormantCustomer" parameterType="Customer">
-		UPDATE TB_DORMANT_CUST
-		SET    CUST_NM = #{encodedCustNm}
-		     , SEX_GB = #{encodedSexGb}
-		     , EMAIL = #{encodedEmail}
-		     , CELL_PHNNO = #{encodedCellPhnno}
-		     , BIRTH_YMD = #{encodedBirthYmd}
-		     , HOME_ZIPCODE = #{encodedHomeZipcode}
-		     , HOME_BASE_ADDR = #{encodedHomeBaseAddr}
-		     , HOME_DTL_ADDR = #{encodedHomeDtlAddr}
-		WHERE  CUST_NO = #{custNo}
-	</update>
-
-	<select id="getEncodingSecedeCustomer" resultType="Customer">
-		SELECT CUST_NO
-		     , CUST_NM
-		     , BIRTH_YMD
-		     , SEX_GB
-		     , CELL_PHNNO
-		     , EMAIL
-		     , HOME_ZIPCODE
-		     , HOME_BASE_ADDR
-		     , HOME_DTL_ADDR
-		FROM TB_SECEDE_CUST
-	</select>
-
-	<update id="updateEncodingSecedeCustomer" parameterType="Customer">
-		UPDATE TB_SECEDE_CUST
-		SET    CUST_NM = #{encodedCustNm}
-		     , SEX_GB = #{encodedSexGb}
-		     , EMAIL = #{encodedEmail}
-		     , CELL_PHNNO = #{encodedCellPhnno}
-		     , BIRTH_YMD = #{encodedBirthYmd}
-		     , HOME_ZIPCODE = #{encodedHomeZipcode}
-		     , HOME_BASE_ADDR = #{encodedHomeBaseAddr}
-		     , HOME_DTL_ADDR = #{encodedHomeDtlAddr}
-		WHERE  CUST_NO = #{custNo}
-	</update>
-
-	<select id="getEncodingCustAccount" resultType="CustAccount">
-		SELECT CUST_NO
-		     , ACCOUNT_NO
-		FROM   TB_CUST_ACCOUNT
-	</select>
-
-	<update id="updateEncodingCustAccount" parameterType="CustAccount">
-		UPDATE TB_CUST_ACCOUNT
-		SET    ACCOUNT_NO = #{encodedAccountNo}
-		WHERE  CUST_NO = #{custNo}
-	</update>
-
 </mapper>