jsshin пре 5 година
родитељ
комит
29b57973c1

+ 33 - 4
src/main/java/com/style24/core/biz/service/TscMailService.java

@@ -200,9 +200,19 @@ public class TscMailService {
 			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();
 		replaceInfo.setInt("custNo", customer.getCustNo());
-		replaceInfo.setString("custId", customer.getCustId());
+		replaceInfo.setString("custId", custId);
 		replaceInfo.setString("custNm", customer.getCustNm());
 		replaceInfo.setString("dormantDt", customer.getDormantDt());
 		replaceInfo.setString("year", year);
@@ -314,9 +324,19 @@ public class TscMailService {
 	 */
 	@Transactional("shopTxnManager")
 	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();
 		replaceInfo.setInt("custNo", custCoupon.getCustNo());
-		replaceInfo.setString("custId", custCoupon.getCustId());
+		replaceInfo.setString("custId", custId);
 		replaceInfo.setString("custNm", custCoupon.getCustNm());
 		replaceInfo.setInt("dcVal", custCoupon.getDcVal());
 		replaceInfo.setString("dcWay", custCoupon.getDcWay());
@@ -351,7 +371,7 @@ public class TscMailService {
 	}
 
 	/**
-	 * 생일쿠폰다운로드안내
+	 * 휴면/미접속자 복귀 쿠폰
 	 *
 	 * @param customer - 고객 정보
 	 * @param coupon - 쿠폰정보
@@ -361,9 +381,18 @@ public class TscMailService {
 	 */
 	@Transactional("shopTxnManager")
 	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();
 		replaceInfo.setInt("custNo", customer.getCustNo());
-		replaceInfo.setString("custId", customer.getCustId());
+		replaceInfo.setString("custId", custId);
 		replaceInfo.setString("custNm", customer.getCustNm());
 		replaceInfo.setInt("dcVal", coupon.getDcVal());
 		replaceInfo.setString("dcWay", coupon.getDcWay());

+ 1 - 0
src/main/java/com/style24/persistence/domain/CustCoupon.java

@@ -47,6 +47,7 @@ public class CustCoupon extends TscBaseDomain {
     private String birthYmd;               // TB_BATCH_BIRTH
     private String smsAgreeYn;
     private String emailAgreeYn;
+    private String snsType;
     private String custGrade;
     private String useCondition;
     private String tgtCondition;