package com.style24.admin.biz.service;

import java.util.Collection;

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

import com.style24.admin.biz.dao.TsaSettleDao;
import com.style24.persistence.domain.AflinkFee;
import com.style24.persistence.domain.DelvFeeSettle;
import com.style24.persistence.domain.GoodsSettle;

import lombok.extern.slf4j.Slf4j;

/**
 * 정산 Service
 *
 * @author gagamel
 * @since 2021. 1. 20
 */
@Service
@Slf4j
public class TsaSettleService {

	@Autowired
	private TsaSettleDao settleDao;

	/**
	 * 상품정산 목록
	 * @param goodsSettle - 상품정산 정보
	 * @return
	 * @author gagamel
	 * @since 2021. 7. 5
	 */
	public Collection<GoodsSettle> getGoodsSettleList(GoodsSettle goodsSettle) {
		return settleDao.getGoodsSettleList(goodsSettle);
	}

	/**
	 * 배송비정산 목록
	 * @param delvFeeSettle - 배송비정산 정보
	 * @return
	 * @author gagamel
	 * @since 2021. 7. 6
	 */
	public Collection<DelvFeeSettle> getDeliveryFeeSettleList(DelvFeeSettle delvFeeSettle) {
		return settleDao.getDeliveryFeeSettleList(delvFeeSettle);
	}

	/**
	 * 제휴채널정산 목록
	 * @param afLinkFee - 제휴채널수수료 정보
	 * @return
	 * @author gagamel
	 * @since 2021. 1. 20
	 */
	public Collection<AflinkFee> getAfLinkFeeList(AflinkFee afLinkFee) {
		return settleDao.getAfLinkFeeList(afLinkFee);
	}

}
