TsfPlanningService.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package com.style24.front.biz.service;
  2. import java.util.Collection;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import com.style24.front.biz.dao.TsfPlanningDao;
  6. import com.style24.front.support.env.TsfConstants;
  7. import com.style24.persistence.domain.Cate4Srch;
  8. import com.style24.persistence.domain.Plan;
  9. import com.style24.persistence.domain.Point;
  10. import lombok.extern.slf4j.Slf4j;
  11. /**
  12. * 기획전 Service
  13. *
  14. * @author gagamel
  15. * @since 2020. 12. 29
  16. */
  17. @Service
  18. @Slf4j
  19. public class TsfPlanningService {
  20. @Autowired
  21. private TsfPlanningDao planningDao;
  22. /**
  23. * 기획전 카테고리 1deth 조회
  24. *
  25. * @param Cate4Srch
  26. * @author sowon
  27. * @since 2021. 03. 05
  28. */
  29. public Collection<Cate4Srch> getPlanCate1(Cate4Srch cate) {
  30. return planningDao.getPlanCate1(cate);
  31. }
  32. /**
  33. * 기획전 갯수 조회
  34. *
  35. * @param Plan
  36. * @author sowon
  37. * @since 2021.03.05
  38. */
  39. public int getPlanAllCount(Plan plan) {
  40. return planningDao.getPlanAllCount(plan);
  41. }
  42. /**
  43. * 기획전 목록
  44. *
  45. * @param
  46. * @return
  47. * @author sowon
  48. * @since 2021. 3. 8
  49. */
  50. public Collection<Plan> getPlanList(Plan plan) {
  51. //plan.setSiteCd(TsfConstants.SITE_CD);
  52. return planningDao.getPlanList(plan);
  53. }
  54. /**
  55. * 기획전 상품 목록
  56. *
  57. * @param
  58. * @return
  59. * @author sowon
  60. * @since 2021. 3. 8
  61. */
  62. public Collection<Plan> getPlanGoodsList(Plan plan) {
  63. //plan.setSiteCd(TsfConstants.SITE_CD);
  64. return planningDao.getPlanGoodsList(plan);
  65. }
  66. /**
  67. * 기획전 고객등급 목록
  68. *
  69. * @param
  70. * @return
  71. * @author sowon
  72. * @since 2021. 3. 9
  73. */
  74. public Collection<Plan>planCustGrade(Plan plan) {
  75. return planningDao.planCustGrade(plan);
  76. }
  77. /**
  78. * 기획전 상세 정보
  79. *
  80. * @param
  81. * @return
  82. * @author sowon
  83. * @since 2021. 3. 8
  84. */
  85. public Plan getPlanDetailInfo(Plan plan) {
  86. return planningDao.getPlanDetailInfo(plan);
  87. }
  88. /**
  89. * 이벤트 갯수 조회
  90. *
  91. * @param Plan
  92. * @author sowon
  93. * @since 2021.03.08
  94. */
  95. public int getEvnetAllCount(Plan plan) {
  96. return planningDao.getEventAllCount(plan);
  97. }
  98. /**
  99. * 이벤트 목록
  100. *
  101. * @param
  102. * @return
  103. * @author sowon
  104. * @since 2021. 3. 9
  105. */
  106. public Collection<Plan> getPlanEventList(Plan plan) {
  107. return planningDao.getPlanEventList(plan);
  108. }
  109. }