|
@@ -200,9 +200,19 @@ public class TscMailService {
|
|
|
day = fewDt.substring(6, 8);
|
|
day = fewDt.substring(6, 8);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ String custId = customer.getCustId();
|
|
|
|
|
+ if (TscConstants.SnsType.NAVER.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "네이버 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.KAKAO.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "카카오 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.YES24.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "YES24 간편가입회원";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
GagaMap replaceInfo = new GagaMap();
|
|
GagaMap replaceInfo = new GagaMap();
|
|
|
replaceInfo.setInt("custNo", customer.getCustNo());
|
|
replaceInfo.setInt("custNo", customer.getCustNo());
|
|
|
- replaceInfo.setString("custId", customer.getCustId());
|
|
|
|
|
|
|
+ replaceInfo.setString("custId", custId);
|
|
|
replaceInfo.setString("custNm", customer.getCustNm());
|
|
replaceInfo.setString("custNm", customer.getCustNm());
|
|
|
replaceInfo.setString("dormantDt", customer.getDormantDt());
|
|
replaceInfo.setString("dormantDt", customer.getDormantDt());
|
|
|
replaceInfo.setString("year", year);
|
|
replaceInfo.setString("year", year);
|
|
@@ -314,9 +324,19 @@ public class TscMailService {
|
|
|
*/
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public void sendBirthDayCouponNotice(CustCoupon custCoupon, Integer senderNo) {
|
|
public void sendBirthDayCouponNotice(CustCoupon custCoupon, Integer senderNo) {
|
|
|
|
|
+
|
|
|
|
|
+ String custId = custCoupon.getCustId();
|
|
|
|
|
+ if (TscConstants.SnsType.NAVER.value().equals(custCoupon.getSnsType())) {
|
|
|
|
|
+ custId = "네이버 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.KAKAO.value().equals(custCoupon.getSnsType())) {
|
|
|
|
|
+ custId = "카카오 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.YES24.value().equals(custCoupon.getSnsType())) {
|
|
|
|
|
+ custId = "YES24 간편가입회원";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
GagaMap replaceInfo = new GagaMap();
|
|
GagaMap replaceInfo = new GagaMap();
|
|
|
replaceInfo.setInt("custNo", custCoupon.getCustNo());
|
|
replaceInfo.setInt("custNo", custCoupon.getCustNo());
|
|
|
- replaceInfo.setString("custId", custCoupon.getCustId());
|
|
|
|
|
|
|
+ replaceInfo.setString("custId", custId);
|
|
|
replaceInfo.setString("custNm", custCoupon.getCustNm());
|
|
replaceInfo.setString("custNm", custCoupon.getCustNm());
|
|
|
replaceInfo.setInt("dcVal", custCoupon.getDcVal());
|
|
replaceInfo.setInt("dcVal", custCoupon.getDcVal());
|
|
|
replaceInfo.setString("dcWay", custCoupon.getDcWay());
|
|
replaceInfo.setString("dcWay", custCoupon.getDcWay());
|
|
@@ -351,7 +371,7 @@ public class TscMailService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 생일쿠폰다운로드안내
|
|
|
|
|
|
|
+ * 휴면/미접속자 복귀 쿠폰
|
|
|
*
|
|
*
|
|
|
* @param customer - 고객 정보
|
|
* @param customer - 고객 정보
|
|
|
* @param coupon - 쿠폰정보
|
|
* @param coupon - 쿠폰정보
|
|
@@ -361,9 +381,18 @@ public class TscMailService {
|
|
|
*/
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
public void sendCombackCoupon(Customer customer, CustCoupon coupon,Integer senderNo){
|
|
public void sendCombackCoupon(Customer customer, CustCoupon coupon,Integer senderNo){
|
|
|
|
|
+ String custId = customer.getCustId();
|
|
|
|
|
+ if (TscConstants.SnsType.NAVER.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "네이버 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.KAKAO.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "카카오 간편가입회원";
|
|
|
|
|
+ } else if (TscConstants.SnsType.YES24.value().equals(customer.getSnsType())) {
|
|
|
|
|
+ custId = "YES24 간편가입회원";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
GagaMap replaceInfo = new GagaMap();
|
|
GagaMap replaceInfo = new GagaMap();
|
|
|
replaceInfo.setInt("custNo", customer.getCustNo());
|
|
replaceInfo.setInt("custNo", customer.getCustNo());
|
|
|
- replaceInfo.setString("custId", customer.getCustId());
|
|
|
|
|
|
|
+ replaceInfo.setString("custId", custId);
|
|
|
replaceInfo.setString("custNm", customer.getCustNm());
|
|
replaceInfo.setString("custNm", customer.getCustNm());
|
|
|
replaceInfo.setInt("dcVal", coupon.getDcVal());
|
|
replaceInfo.setInt("dcVal", coupon.getDcVal());
|
|
|
replaceInfo.setString("dcWay", coupon.getDcWay());
|
|
replaceInfo.setString("dcWay", coupon.getDcWay());
|