|
@@ -424,10 +424,14 @@ public class TsfCustomerService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (TscConstants.CustStat.ACTIVE.value().equals(custInfo.getCustStat())) {
|
|
if (TscConstants.CustStat.ACTIVE.value().equals(custInfo.getCustStat())) {
|
|
|
|
|
+
|
|
|
custInfo.setSnsId(custSnsInfo.getSnsId());
|
|
custInfo.setSnsId(custSnsInfo.getSnsId());
|
|
|
custInfo.setSnsType(custSnsInfo.getSnsType());
|
|
custInfo.setSnsType(custSnsInfo.getSnsType());
|
|
|
customerDao.createCustomerSns(custInfo);
|
|
customerDao.createCustomerSns(custInfo);
|
|
|
|
|
+
|
|
|
resultMap.setString("custStat", "SUCC_CUST");
|
|
resultMap.setString("custStat", "SUCC_CUST");
|
|
|
|
|
+ resultMap.setString("snsId", custSnsInfo.getSnsId());
|
|
|
|
|
+ resultMap.setString("snsType", custSnsInfo.getSnsType());
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -437,29 +441,24 @@ public class TsfCustomerService {
|
|
|
resultMap.setString("custStat", "EMPTY_PHONE_CUST");
|
|
resultMap.setString("custStat", "EMPTY_PHONE_CUST");
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
boolean isFindByPhone = getCustomerFindByCellPhnnoCount(custSnsInfo.getCellPhnno().replace("-", ""));
|
|
boolean isFindByPhone = getCustomerFindByCellPhnnoCount(custSnsInfo.getCellPhnno().replace("-", ""));
|
|
|
if (isFindByPhone) {
|
|
if (isFindByPhone) {
|
|
|
resultMap.setString("custStat", "DUP_PHONE_CUST"); // 휴대폰 중복
|
|
resultMap.setString("custStat", "DUP_PHONE_CUST"); // 휴대폰 중복
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
boolean isFindByEmail = getCustomerFindByEmailCount(custSnsInfo.getEmail());
|
|
boolean isFindByEmail = getCustomerFindByEmailCount(custSnsInfo.getEmail());
|
|
|
if (isFindByEmail) {
|
|
if (isFindByEmail) {
|
|
|
resultMap.setString("custStat", "DUP_EMAIL_CUST"); // 이메일 중복
|
|
resultMap.setString("custStat", "DUP_EMAIL_CUST"); // 이메일 중복
|
|
|
return resultMap;
|
|
return resultMap;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
Customer customer = objectMapper.convertValue(custSnsInfo, Customer.class);
|
|
Customer customer = objectMapper.convertValue(custSnsInfo, Customer.class);
|
|
|
boolean isJoin = saveJoinCustomerSns(customer);
|
|
boolean isJoin = saveJoinCustomerSns(customer);
|
|
|
-
|
|
|
|
|
- if (isJoin) {
|
|
|
|
|
- resultMap.setString("custNo", String.valueOf(customer.getCustNo()));
|
|
|
|
|
- resultMap.setString("custStat", "NEW_CUST");
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (!isJoin) {
|
|
|
resultMap.setString("custStat", "FAIL_CUST");
|
|
resultMap.setString("custStat", "FAIL_CUST");
|
|
|
|
|
+ return resultMap;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ resultMap.setString("custNo", String.valueOf(customer.getCustNo()));
|
|
|
|
|
+ resultMap.setString("custStat", "NEW_CUST");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return resultMap;
|
|
return resultMap;
|