|
|
@@ -101,11 +101,31 @@ public class TsfCustomerService {
|
|
|
public Customer getCustomerFindByCustNo(Integer custNo) {
|
|
|
Customer customer = new Customer();
|
|
|
customer.setCustNo(custNo);
|
|
|
+
|
|
|
customer.setCustStat(TscConstants.CustStat.ACTIVE.value());
|
|
|
customer.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
customer.encryptData();
|
|
|
return coreCustomerService.getCustomerInfo(customer);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 고객정보찾기 (휴면회원 비밀번호변경)
|
|
|
+ *
|
|
|
+ * @param custNo - 고객번호
|
|
|
+ * @return Customer 고객정보
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2021. 02. 24
|
|
|
+ */
|
|
|
+ public Customer getCustomerFindByCustNoDormant(Integer custNo) {
|
|
|
+ Customer customer = new Customer();
|
|
|
+ customer.setCustNo(custNo);
|
|
|
+
|
|
|
+ // 2022.01.22 휴면계정 비밀번호 변경시 처리
|
|
|
+ // customer.setCustStat(TscConstants.CustStat.ACTIVE.value());
|
|
|
+ customer.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
+ customer.encryptData();
|
|
|
+ return coreCustomerService.getCustomerInfo(customer);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 휴면고객 정보 찾기
|
|
|
@@ -219,9 +239,9 @@ public class TsfCustomerService {
|
|
|
|
|
|
return result > 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
- * 해당 CI로 가입된 이력이 있는지 확인
|
|
|
+ * 해당 CI로 가입된 이력이 있는지 확인 (회원가입, 휴대폰중복체크)
|
|
|
* @param ci - 연계정보
|
|
|
* @return boolean - 있으면 TRUE/ 없으면 FALSE
|
|
|
* @author jsshin
|
|
|
@@ -237,6 +257,24 @@ public class TsfCustomerService {
|
|
|
return customerDao.getCustomerInfo(customer);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 해당 CI로 가입된 이력이 있는지 확인 (TB_CUSTOMER.CI NULL)
|
|
|
+ * @param ci - 연계정보
|
|
|
+ * @return boolean - 있으면 TRUE/ 없으면 FALSE
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2021. 02. 15
|
|
|
+ */
|
|
|
+ public Customer getCustomerFindByCiCustomer(String ci) {
|
|
|
+ TscSession.setAttribute("maskingYn", "Y");
|
|
|
+ Customer customer = new Customer();
|
|
|
+ customer.setCi(ci);
|
|
|
+ customer.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
+ customer.encryptData();
|
|
|
+
|
|
|
+ // 2022.01.10 본인인증시 휴면회원, 탈퇴회원은 CI 중복체크 안함
|
|
|
+ return customerDao.getCustomerInfoCI(customer);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 해당 휴대폰 번호로 가입된 이력이 있는지 확인
|
|
|
* @param cellPhnno - 휴대전화번호
|
|
|
@@ -707,9 +745,14 @@ public class TsfCustomerService {
|
|
|
Customer custInfo = getDormantCustomerFindByCustNo(customer.getCustNo());
|
|
|
|
|
|
if (!customer.getCi().equals(custInfo.getCi())) {
|
|
|
- result.setBoolean("isRelase", false);
|
|
|
- result.setString("errorType", "DIFFERENT_CI"); // 계정이 등록된 CI랑 인증한 CI가 다를떄
|
|
|
- return result;
|
|
|
+ // 2022.01.10 TB_CUSTOMER.CI 값이 없을때 TB_CUSTOMER CI UPDATE
|
|
|
+ if (StringUtils.isBlank(custInfo.getCi())) {
|
|
|
+ // CI가 없으면 로그인시 본인인증을 한번더 하게끔 처리 로직으로 변경
|
|
|
+ } else {
|
|
|
+ result.setBoolean("isRelase", false);
|
|
|
+ result.setString("errorType", "DIFFERENT_CI"); // 계정이 등록된 CI랑 인증한 CI가 다를떄
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
customer.setRegNo(customer.getCustNo());
|
|
|
@@ -738,7 +781,7 @@ public class TsfCustomerService {
|
|
|
boolean isSuccess = false;
|
|
|
|
|
|
// CI 유효성 체크
|
|
|
- Customer custInfo = getCustomerFindByCi(customer.getCi());
|
|
|
+ Customer custInfo = getCustomerFindByCiCustomer(customer.getCi());
|
|
|
if (custInfo != null) {
|
|
|
TsfSession.setAttribute("maskingCustId", custInfo.getMaskingCustId());
|
|
|
resultMap.setBoolean("isSuccess", isSuccess);
|
|
|
@@ -747,6 +790,7 @@ public class TsfCustomerService {
|
|
|
|
|
|
// 1.이력 쌓고
|
|
|
coreCustomerService.createCustomerHistory(customer);
|
|
|
+
|
|
|
// 2.CI 업데이트
|
|
|
int resultCnt = customerDao.updateCustomerCi(customer);
|
|
|
|