package com.style24.batch.biz.service;

import java.util.Collection;

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

import com.style24.batch.biz.dao.TsbOrderDao;
import com.style24.batch.biz.dao.TsbPointDao;
import com.style24.persistence.domain.Order;
import com.style24.persistence.domain.Point;

import lombok.extern.slf4j.Slf4j;

/**
 * 포인트 Service
 *
 * @author xodud1202
 * @since 2021. 05. 04
 */
@Service
@Slf4j
public class TsbOrderService {

	@Autowired
	private TsbOrderDao orderDao;

	/**
	 * 무통장입금 입금기한 만료 주문 조회
	 *
	 * @return Collection<Order>
	 * @author xodud1202
	 * @since  2021. 05. 03
	 */
	public Collection<Order> getOrderDepositExpirationList() {
		return orderDao.getOrderDepositExpirationList();
	}

	/**
	 * 선물하기 배송지 등록 기간 만료 주문 취소
	 *
	 * @return Collection<Order>
	 * @author xodud1202
	 * @since  2021. 05. 03
	 */
	public Collection<Order> getOrderGiftExpirationList() {
		return orderDao.getOrderGiftExpirationList();
	}

	/**
	 * 무통장입금 만료대기자 리스트 조회
	 * @return Collection<Order>
	 * @author xodud1202
	 * @since  2021. 07. 13
	 */
	public Collection<Order> getOrderDepositWaitingCustomerList() {
		return orderDao.getOrderDepositWaitingCustomerList();
	}
}
