|
|
@@ -9,6 +9,8 @@ import com.style24.persistence.domain.Clause;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import java.util.Collection;
|
|
|
+
|
|
|
/**
|
|
|
* 약관 Service
|
|
|
*
|
|
|
@@ -38,4 +40,31 @@ public class TscClauseService {
|
|
|
return clauseDao.getClause(clause);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 약관목록
|
|
|
+ * @param siteCd - 사이트코드
|
|
|
+ * @param clauseType - 약관타입
|
|
|
+ * @return Collection<Clause> - 약관목록
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2021. 06. 10
|
|
|
+ */
|
|
|
+ public Collection<Clause> getClauseList(String siteCd, String clauseType) {
|
|
|
+ Clause clause = new Clause();
|
|
|
+ clause.setSiteCd(siteCd);
|
|
|
+ clause.setClauseType(clauseType);
|
|
|
+ return clauseDao.getClauseList(clause);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 약관정보
|
|
|
+ * @param clauseSq - 약관시퀀스
|
|
|
+ * @return String - 약관내용
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2021. 06. 10
|
|
|
+ */
|
|
|
+ public Clause getClauseInfo(Integer clauseSq) {
|
|
|
+ return clauseDao.getClauseInfo(clauseSq);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|