package com.style24.admin.biz.dao;

import java.util.Collection;

import com.style24.core.support.annotation.ShopDs;
import com.style24.persistence.domain.GoodsSearch;
import com.style24.persistence.domain.Option;

import com.gagaframework.web.parameter.GagaMap;

/**
 * 재고관리 Dao
 *
 * @author eskim
 * @since 2020. 11. 17
 */
@ShopDs
public interface TsaStockDao {

	/**
	 * 상품 사이즈별 재고 현황 목록 건수
	 *
	 * @param goodsSearch
	 * @return
	 * @author eskim
	 * @since 2010. 11. 17
	 */
	int getGoodsSizeStockCount(GoodsSearch goodsSearch);

	/**
	 * 상품 사이즈별 재고 현황 목록
	 *
	 * @param goodsSearch
	 * @return
	 * @author eskim
	 * @since 2010. 11. 17
	 */
	Collection<Option> getGoodsSizeStockList(GoodsSearch goodsSearch);

	/**
	 * 사이즈별재고현황 - 엑셀다운로드
	 *
	 * @param goodsSearch
	 * @return
	 * @author eskim
	 * @since 2020. 11. 17
	 */
	Collection<GagaMap> getGoodsSizeStockExcelList(GoodsSearch goodsSearch);

	/**
	 * 상품 사이즈별 품절여부 변경
	 *
	 * @param stock
	 * @author eskim
	 * @since 2020. 11. 17
	 */
	void updateStockSoldOut(Option stock);

}
