TsbCustomerTask.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. package com.style24.batch.biz.task;
  2. import com.style24.batch.biz.job.marketing.TsbCombackCouponNoticeJob;
  3. import com.style24.batch.biz.job.marketing.TsbExpectCouponJob;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.scheduling.annotation.Async;
  6. import org.springframework.scheduling.annotation.Scheduled;
  7. import org.springframework.stereotype.Component;
  8. import com.style24.batch.biz.job.customer.TsbDormantScheduleJob;
  9. import com.style24.batch.biz.job.customer.TsbDormantTransformJob;
  10. import com.style24.batch.biz.job.customer.TsbGradeChangeJob;
  11. import com.style24.batch.biz.job.customer.TsbMarketingAgreeNoticeJob;
  12. import com.style24.batch.biz.job.customer.TsbNetpathyMailJob;
  13. import com.style24.batch.biz.job.customer.TsbPrivacyPolicyNoticeJob;
  14. import com.style24.batch.biz.job.customer.TsbSecedeProcessJob;
  15. import com.style24.batch.biz.job.marketing.TsbAutoBuyConfirmJob;
  16. import com.style24.batch.biz.job.marketing.TsbBirthdayCouponNoticeJob;
  17. import com.style24.batch.biz.job.marketing.TsbExpectGiftcardJob;
  18. import com.style24.batch.biz.job.marketing.TsbExpectPointJob;
  19. import com.style24.batch.biz.job.marketing.TsbExpireGiftcardJob;
  20. import com.style24.batch.biz.job.marketing.TsbExpirePointJob;
  21. import com.style24.batch.biz.job.marketing.TsbReviewGuideJob;
  22. import lombok.extern.slf4j.Slf4j;
  23. /**
  24. * 회원(고객) Task
  25. * @author jsshin
  26. * @since 2021. 03. 08
  27. */
  28. @Component
  29. @Slf4j
  30. public class TsbCustomerTask {
  31. @Autowired
  32. private TsbDormantScheduleJob dormantScheduleJob;
  33. @Autowired
  34. private TsbDormantTransformJob dormantTransformJob;
  35. @Autowired
  36. private TsbSecedeProcessJob secedeProcessJob;
  37. @Autowired
  38. private TsbPrivacyPolicyNoticeJob privacyPolicyNoticeJob;
  39. @Autowired
  40. private TsbMarketingAgreeNoticeJob marketingAgreeNoticeJob;
  41. @Autowired
  42. private TsbGradeChangeJob gradeChangeJob;
  43. @Autowired
  44. private TsbNetpathyMailJob netpathyJob;
  45. @Autowired
  46. private TsbAutoBuyConfirmJob autoBuyConfirmJob;
  47. @Autowired
  48. private TsbBirthdayCouponNoticeJob birthdayCouponNoticeJob;
  49. @Autowired
  50. private TsbCombackCouponNoticeJob combackCouponNoticeJob;
  51. @Autowired
  52. private TsbExpirePointJob expirePointJob;
  53. @Autowired
  54. private TsbExpectPointJob expectPointJob;
  55. @Autowired
  56. private TsbExpireGiftcardJob expireGiftcardJob;
  57. @Autowired
  58. private TsbExpectGiftcardJob expectGiftcardJob;
  59. @Autowired
  60. private TsbExpectCouponJob expectCouponJob;
  61. @Autowired
  62. private TsbReviewGuideJob reviewGuideJob;
  63. /**
  64. * 휴면전환 예정 대상 메일 발송
  65. *
  66. * @throws Exception - 예외처리
  67. * @author jsshin
  68. * @since 2021. 03. 08
  69. */
  70. @Scheduled(cron = "${cron.customer.dormant.create}")
  71. @Async
  72. public void dormantCustomerCreateJob() throws Exception {
  73. dormantScheduleJob.runById("cron.customer.dormant.create");
  74. }
  75. /**
  76. * 휴면전환
  77. *
  78. * @throws Exception - 예외처리
  79. * @author jsshin
  80. * @since 2021. 03. 08
  81. */
  82. @Scheduled(cron = "${cron.customer.dormant.transform}")
  83. @Async
  84. public void dormantCustomerTransformJob() throws Exception {
  85. dormantTransformJob.runById("cron.customer.dormant.transform");
  86. }
  87. /**
  88. * 탈퇴회원 처리
  89. *
  90. * @throws Exception - 예외처리
  91. * @author jsshin
  92. * @since 2021. 03. 08
  93. */
  94. @Scheduled(cron = "${cron.customer.secede.transform}")
  95. @Async
  96. public void secedeCustomerTransformJob() throws Exception {
  97. secedeProcessJob.runById("cron.customer.secede.transform");
  98. }
  99. /**
  100. * 개인정보 이용내역 안내 발송
  101. *
  102. * @throws Exception - 예외처리
  103. * @author jsshin
  104. * @since 2021. 05. 06
  105. */
  106. @Scheduled(cron = "${cron.customer.privacy.info.notify}")
  107. @Async
  108. public void privacyInfoNotifyJob() throws Exception {
  109. privacyPolicyNoticeJob.runById("cron.customer.privacy.info.notify");
  110. }
  111. /**
  112. * 마케팅 정보 수신동의 내역 안내 발송
  113. *
  114. * @throws Exception - 예외처리
  115. * @author jsshin
  116. * @since 2021. 05. 06
  117. */
  118. @Scheduled(cron = "${cron.customer.marketing.info.notify}")
  119. @Async
  120. public void marketingInfoNotifyJob() throws Exception {
  121. marketingAgreeNoticeJob.runById("cron.customer.marketing.info.notify");
  122. }
  123. /**
  124. * 회원등급 변경
  125. *
  126. * @throws Exception - 예외처리
  127. * @author jsshin
  128. * @since 2021. 05. 06
  129. */
  130. @Scheduled(cron = "${cron.customer.grade.change}")
  131. @Async
  132. public void customerGradeChangeJob() throws Exception {
  133. gradeChangeJob.runById("cron.customer.grade.change");
  134. }
  135. /**
  136. * 넷퍼시메일솔루션에 회원정보 연동
  137. * @throws Exception - 예외처리
  138. * @author gagamel
  139. * @since 2021. 5. 10
  140. */
  141. @Scheduled(cron = "${cron.customer.netpathy.mail.sync}")
  142. @Async
  143. public void customerInfoNetpathyMailSyncJob() throws Exception {
  144. netpathyJob.runById("cron.customer.netpathy.mail.sync");
  145. }
  146. /**
  147. * 자동구매확정 포인트 지급
  148. *
  149. * @throws Exception - 예외처리
  150. * @author jsshin
  151. * @since 2021. 04. 23
  152. */
  153. @Scheduled(cron = "${cron.customer.auto.buy.confirm}")
  154. // @Scheduled(fixedDelay = 3500000)
  155. @Async
  156. public void autoBuyConfirmJob() throws Exception {
  157. autoBuyConfirmJob.runById("cron.customer.auto.buy.confirm");
  158. }
  159. /**
  160. * 생일쿠폰 다운로드 안내
  161. *
  162. * @throws Exception - 예외처리
  163. * @author jsshin
  164. * @since 2021. 05. 10
  165. */
  166. @Scheduled(cron = "${cron.customer.birth.coupon.notify}")
  167. @Async
  168. public void birthCouponNotifyJob() throws Exception {
  169. birthdayCouponNoticeJob.runById("cron.customer.birth.coupon.notify");
  170. }
  171. /**
  172. * 휴면/미접속자 방어 쿠폰
  173. *
  174. * @throws Exception - 예외처리
  175. * @author jsshin
  176. * @since 2021. 05. 10
  177. */
  178. @Scheduled(cron = "${cron.customer.comback.coupon.notify}")
  179. @Async
  180. public void combackCouponNotify() throws Exception {
  181. combackCouponNoticeJob.runById("cron.customer.comback.coupon.notify");
  182. }
  183. /**
  184. * 포인트 소멸처리
  185. *
  186. * @throws Exception - 예외처리
  187. * @author sowon
  188. * @since 2021. 04. 26
  189. */
  190. @Scheduled(cron = "${cron.customer.point.expire}")
  191. @Async
  192. public void pointExpireJob() throws Exception {
  193. expirePointJob.runById("cron.customer.point.expire");
  194. }
  195. /**
  196. * 포인트 기간만료 알림톡(30일)
  197. *
  198. * @throws Exception - 예외처리
  199. * @author sowon
  200. * @since 2021. 05. 28
  201. */
  202. @Scheduled(cron = "${cron.customer.point.expect.notify}")
  203. @Async
  204. public void pointExpectJob() throws Exception {
  205. expectPointJob.runById("cron.customer.point.expect.notify");
  206. }
  207. /**
  208. * 상품권 소멸처리
  209. *
  210. * @throws Exception - 예외처리
  211. * @author sowon
  212. * @since 2021. 05. 20
  213. */
  214. @Scheduled(cron = "${cron.customer.giftcard.expire}")
  215. @Async
  216. public void giftcardExpireJob() throws Exception {
  217. expireGiftcardJob.runById("cron.customer.giftcard.expire");
  218. }
  219. /**
  220. * 상품권 기간만료 알림톡(30일)
  221. *
  222. * @throws Exception - 예외처리
  223. * @author sowon
  224. * @since 2021. 05. 27
  225. */
  226. @Scheduled(cron = "${cron.customer.giftcard.expect.notify}")
  227. @Async
  228. public void giftcardExpectJob() throws Exception {
  229. expectGiftcardJob.runById("cron.customer.giftcard.expect.notify");
  230. }
  231. /**
  232. * 쿠폰 기간만료 알림톡(7일)
  233. *
  234. * @throws Exception - 예외처리
  235. * @author sowon
  236. * @since 2021. 05. 31
  237. */
  238. @Scheduled(cron = "${cron.customer.coupon.expect.notify}")
  239. @Async
  240. public void couponExpectJob() throws Exception {
  241. expectCouponJob.runById("cron.customer.coupon.expect.notify");
  242. }
  243. /**
  244. * 상품평등록안내발송 처리
  245. * @throws Exception - 예외처리
  246. * @author gagamel
  247. * @since 2021. 5. 17
  248. */
  249. @Scheduled(cron = "${cron.customer.review.register.notify}")
  250. @Async
  251. public void customerReviewRegisterNotifyJob() throws Exception {
  252. reviewGuideJob.runById("cron.customer.review.register.notify");
  253. }
  254. }