|
@@ -134,5 +134,40 @@ public class TscMailService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 회원탈퇴
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param customer - 고객 정보
|
|
|
|
|
+ * @param senderNo - 보낸
|
|
|
|
|
+ * @author jsshin
|
|
|
|
|
+ * @since 2021. 06. 02
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transactional("shopTxnManager")
|
|
|
|
|
+ public void sendSecedComplete(Customer customer, Integer senderNo) {
|
|
|
|
|
+ GagaMap replaceInfo = new GagaMap();
|
|
|
|
|
+ replaceInfo.setInt("custNo", customer.getCustNo());
|
|
|
|
|
+ replaceInfo.setString("custId", customer.getCustId());
|
|
|
|
|
+ replaceInfo.setString("custNm", customer.getCustNm());
|
|
|
|
|
+ replaceInfo.setString("secedeDt", customer.getSecedeDt());
|
|
|
|
|
+ replaceInfo.setInt("rejoinRejectDay", customer.getRejoinRejectDay());
|
|
|
|
|
+
|
|
|
|
|
+ netpathyMailSender.send(NetpathyMailSender.MailAnswerSq.SECEDE_CUST.value(), customer.getEmail(), replaceInfo);
|
|
|
|
|
+
|
|
|
|
|
+ try {
|
|
|
|
|
+ // 고객접촉이력 정보
|
|
|
|
|
+ CustContactHst custContactHst = new CustContactHst();
|
|
|
|
|
+ custContactHst.setContactType(TscConstants.ContactType.SECEDE_CUST.value()); // 접촉유형:임시비밀번호발급(공통코드G054)
|
|
|
|
|
+ custContactHst.setContactMethod(TscConstants.ContactMethod.EMAIL.value()); // 접촉방법:알림톡+문자(공통코드G055)
|
|
|
|
|
+ custContactHst.setContactContents("회원탈퇴안내");
|
|
|
|
|
+ custContactHst.setReceiverNo(customer.getCustNo());
|
|
|
|
|
+ custContactHst.setSenderNo(senderNo);
|
|
|
|
|
+ custContactHst.setRegNo(senderNo);
|
|
|
|
|
+ coreCustomerService.createCustomerContactHistory(custContactHst);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ log.error("error", e);
|
|
|
|
|
+ // Do nothing
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|