|
@@ -261,11 +261,7 @@ public class TsfCustomerService {
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public boolean saveJoinCustomer(Customer customer) {
|
|
public boolean saveJoinCustomer(Customer customer) {
|
|
|
boolean isJoin = true;
|
|
boolean isJoin = true;
|
|
|
-
|
|
|
|
|
- if (customer.getBirthYmd().length() == 8) {
|
|
|
|
|
- String birthMm = customer.getBirthYmd().substring(4, 6);
|
|
|
|
|
- customer.setBirthMm(birthMm);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ customer.initBirthMm();
|
|
|
customer.setHypenCellPhone();
|
|
customer.setHypenCellPhone();
|
|
|
customer.encryptData();
|
|
customer.encryptData();
|
|
|
customer.setEncodedPasswd(passwordEncoder.encodeSha256(customer.getPasswd()));
|
|
customer.setEncodedPasswd(passwordEncoder.encodeSha256(customer.getPasswd()));
|
|
@@ -315,11 +311,8 @@ public class TsfCustomerService {
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public boolean saveJoinCustomerSns(Customer customer) {
|
|
public boolean saveJoinCustomerSns(Customer customer) {
|
|
|
boolean isJoin = true;
|
|
boolean isJoin = true;
|
|
|
- if (customer.getBirthYmd().length() == 8) {
|
|
|
|
|
- String birthMm = customer.getBirthYmd().substring(4, 6);
|
|
|
|
|
- customer.setBirthMm(birthMm);
|
|
|
|
|
- }
|
|
|
|
|
String snsId = customer.getSnsType().equals(TscConstants.SnsType.YES24.value()) ? customer.getMemNo() : customer.getSnsId();
|
|
String snsId = customer.getSnsType().equals(TscConstants.SnsType.YES24.value()) ? customer.getMemNo() : customer.getSnsId();
|
|
|
|
|
+ customer.initBirthMm();
|
|
|
customer.setEncodedPasswd(" ");
|
|
customer.setEncodedPasswd(" ");
|
|
|
customer.setCustId(customer.getSnsType() + "_" + snsId);
|
|
customer.setCustId(customer.getSnsType() + "_" + snsId);
|
|
|
customer.encryptData();
|
|
customer.encryptData();
|
|
@@ -743,10 +736,7 @@ public class TsfCustomerService {
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public GagaMap saveCertification(Customer customer) {
|
|
public GagaMap saveCertification(Customer customer) {
|
|
|
GagaMap resultMap = new GagaMap();
|
|
GagaMap resultMap = new GagaMap();
|
|
|
- if (customer.getBirthYmd().length() == 8) {
|
|
|
|
|
- String birthMm = customer.getBirthYmd().substring(4, 6);
|
|
|
|
|
- customer.setBirthMm(birthMm);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ customer.initBirthMm();
|
|
|
customer.setRegNo(customer.getCustNo());
|
|
customer.setRegNo(customer.getCustNo());
|
|
|
customer.setUpdNo(customer.getCustNo());
|
|
customer.setUpdNo(customer.getCustNo());
|
|
|
customer.setHypenCellPhone();
|
|
customer.setHypenCellPhone();
|
|
@@ -836,10 +826,7 @@ public class TsfCustomerService {
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public GagaMap updateCustomerAuth(Customer customer) {
|
|
public GagaMap updateCustomerAuth(Customer customer) {
|
|
|
GagaMap result = new GagaMap();
|
|
GagaMap result = new GagaMap();
|
|
|
- if (customer.getBirthYmd().length() == 8) {
|
|
|
|
|
- String birthMm = customer.getBirthYmd().substring(4, 6);
|
|
|
|
|
- customer.setBirthMm(birthMm);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ customer.initBirthMm();
|
|
|
customer.setRegNo(customer.getCustNo());
|
|
customer.setRegNo(customer.getCustNo());
|
|
|
customer.setUpdNo(customer.getCustNo());
|
|
customer.setUpdNo(customer.getCustNo());
|
|
|
customer.setHypenCellPhone();
|
|
customer.setHypenCellPhone();
|