|
|
@@ -9,6 +9,7 @@ import com.style24.core.support.session.TscSession;
|
|
|
import com.style24.core.support.util.MaskingUtils;
|
|
|
import com.style24.front.support.security.TsfLoginDetails;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
+import com.style24.persistence.domain.Coupon;
|
|
|
import com.style24.persistence.domain.CustSnsInfo;
|
|
|
import com.style24.persistence.domain.Customer;
|
|
|
import com.style24.persistence.domain.Login;
|
|
|
@@ -332,17 +333,19 @@ public class TsfCustomerService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 가입 후 처리 혜택(쿠폰,포인트)
|
|
|
+ * 가입 후 처리 혜택(쿠폰)
|
|
|
* @param customer - 일반가입, SNS 가입
|
|
|
* @author jsshin
|
|
|
* @since 2021. 02. 19
|
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
|
public void saveJoinPostProcessing(Customer customer) {
|
|
|
- // 1. 쿠폰
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ // 1. 쿠폰지급 : 운영관리 > 회원등급정책관리 > WELCOME 등급
|
|
|
+ Coupon coupon = new Coupon();
|
|
|
+ coupon.setCustGrade(customer.getCustGrade());
|
|
|
+ coupon.setCustNo(customer.getCustNo());
|
|
|
+ coupon.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
+ couponService.saveJoinCoupon(coupon);
|
|
|
}
|
|
|
|
|
|
|