package com.style24.batch.biz.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.style24.batch.biz.dao.TsbStatisticsDao;

import lombok.extern.slf4j.Slf4j;

/**
 * 통계 Service
 *
 * @author eskim
 * @since 2020. 12. 03
 */
@Service
@Slf4j
public class TsbStatisticsService {

	@Autowired
	private TsbStatisticsDao statisticsDao;

	/**
	 * 사이트 제휴코드 유입집계
	 *
	 * @author daehyoung
	 * @since 2020. 08. 18
	 */
	@Transactional("shopTxnManager")
	public int createInflowDaily(String inflowDt) {
		// 사이트 제휴코드 유입집계 전일데이터 생성
		return statisticsDao.createInflowDaily(inflowDt);
	}
}
