|
|
@@ -0,0 +1,33 @@
|
|
|
+package com.style24.batch.biz.service;
|
|
|
+
|
|
|
+import com.gagaframework.web.parameter.GagaMap;
|
|
|
+import com.style24.persistence.domain.CustCoupon;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 쿠폰 Service
|
|
|
+ *
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2021. 05. 27
|
|
|
+ */
|
|
|
+@Service
|
|
|
+@Slf4j
|
|
|
+public class TsbCouponService {
|
|
|
+ @Autowired
|
|
|
+ private TsbCustomerService customerService;
|
|
|
+
|
|
|
+ @Transactional("shopTxnManager")
|
|
|
+ public GagaMap saveCombackCoupon(CustCoupon custCoupon) {
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
+ // [G12] 휴면/미접속자 방어쿠폰 자동발송-1 : -180 ~ -91
|
|
|
+ // [G13] 휴면/미접속자 방어쿠폰 자동발송-2 : -270 ~ -181
|
|
|
+ // [G14] 휴면/미접속자 방어쿠폰 자동발송-3 : -365 ~ -271
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+}
|