package com.style24.batch.biz.dao;

import org.springframework.dao.DataAccessException;

import com.style24.core.support.annotation.ShopDs;
import com.style24.persistence.domain.Social;

/**
 * 소셜관리(핫딜) Dao
 *
 * @author sowon
 * @since 2021. 3. 10
 */
@ShopDs
public interface TsbSocialDao {
	/**
	 * 상품 가격정보 원복(before)
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void updateGoodsBeforePriceInfo(Social social) throws DataAccessException;

	/**
	 * 원복(before) 상품 이력 생성
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void createBeforeGoodsHst(Social social) throws DataAccessException;

	/**
	 * 소셜 적용 여부 '종료'(적용->종료) 업데이트
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void updateSocialApplyGbtoF(Social social) throws DataAccessException;

	/**
	 * 소셜상품 적용 전 가격정보 업데이트
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
//	public void updateSocialGoodsBeforePriceInfo() throws DataAccessException;

	/**
	 * 상품 가격정보 적용(after)
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void updateGoodsAfterPriceInfo(Social social) throws DataAccessException;

	/**
	 * 적용(after) 상품 이력 생성
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void createAfterGoodsHst(Social social) throws DataAccessException;

	/**
	 * 소셜 적용 여부 '적용'(대기->적용) 업데이트
	 *
	 * @throws DataAccessException
	 * @author sowon
	 * @since 2021. 3. 10
	 */
	public void updateSocialApplyGbtoA(Social social) throws DataAccessException;
}
