|
@@ -2,6 +2,7 @@ package com.style24.batch.biz.service;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
|
|
+import com.style24.persistence.domain.CustCoupon;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -377,7 +378,7 @@ public class TsbCustomerService {
|
|
|
* @author jsshin
|
|
* @author jsshin
|
|
|
* @since 2021. 05. 10
|
|
* @since 2021. 05. 10
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Customer> getBirthDayTargetList(CustomerSearch customerSearch) {
|
|
|
|
|
|
|
+ public Collection<CustCoupon> getBirthDayTargetList(CustomerSearch customerSearch) {
|
|
|
return customerDao.getBirthDayTargetList(customerSearch);
|
|
return customerDao.getBirthDayTargetList(customerSearch);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -385,15 +386,15 @@ public class TsbCustomerService {
|
|
|
/**
|
|
/**
|
|
|
* 생일쿠폰 안내
|
|
* 생일쿠폰 안내
|
|
|
*
|
|
*
|
|
|
- * @param customer - 사이트 코드
|
|
|
|
|
|
|
+ * @param custCoupon - 사이트 코드
|
|
|
* @author jsshin
|
|
* @author jsshin
|
|
|
* @since 2021. 05. 10
|
|
* @since 2021. 05. 10
|
|
|
*/
|
|
*/
|
|
|
@Transactional("shopTxnManager")
|
|
@Transactional("shopTxnManager")
|
|
|
- public void sendBirthDayCouponNotice(Customer customer) {
|
|
|
|
|
|
|
+ public void sendBirthDayCouponNotice(CustCoupon custCoupon) {
|
|
|
// TODO: 이메일 발송 모듈 붙어야 함 2021.05.10 jsshin
|
|
// TODO: 이메일 발송 모듈 붙어야 함 2021.05.10 jsshin
|
|
|
// 이메일 발송
|
|
// 이메일 발송
|
|
|
- if (StringUtils.isNotBlank(customer.getEmail())) {
|
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(custCoupon.getEmail())) {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
CustContactHst custContactHst = new CustContactHst();
|
|
CustContactHst custContactHst = new CustContactHst();
|
|
@@ -401,7 +402,7 @@ public class TsbCustomerService {
|
|
|
custContactHst.setContactMethod(TscConstants.ContactMethod.EMAIL.value());
|
|
custContactHst.setContactMethod(TscConstants.ContactMethod.EMAIL.value());
|
|
|
custContactHst.setContactContents("생일쿠폰 다운로드 안내");
|
|
custContactHst.setContactContents("생일쿠폰 다운로드 안내");
|
|
|
custContactHst.setSenderNo(TsbConstants.REG_NO);
|
|
custContactHst.setSenderNo(TsbConstants.REG_NO);
|
|
|
- custContactHst.setReceiverNo(customer.getCustNo());
|
|
|
|
|
|
|
+ custContactHst.setReceiverNo(custCoupon.getCustNo());
|
|
|
custContactHst.setRegNo(TsbConstants.REG_NO);
|
|
custContactHst.setRegNo(TsbConstants.REG_NO);
|
|
|
//접촉 이력 저장
|
|
//접촉 이력 저장
|
|
|
coreCustomerService.createCustomerContactHistory(custContactHst);
|
|
coreCustomerService.createCustomerContactHistory(custContactHst);
|