package com.style24.admin.biz.dao;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import com.style24.persistence.domain.WmsWithdraw;
import com.style24.persistence.domain.Withdraw;
import com.style24.persistence.domain.Delivery;
import com.style24.core.support.annotation.WmsDs;
import org.springframework.stereotype.Repository;

/**
 * 회수관리 Dao
 * 
 * @author moon
 * @since 2021. 03. 10
 */
@WmsDs
@Repository
public interface TsaWmsWithdrawDao {

	
	/**
	 *  WMS회수 목록  건수
	 * 
	 * @param WmsWithdraw
	 * @return int
	 * @author moon
	 * @since 2021. 03. 10
	 */
	int getWmsWithdrawListCount(WmsWithdraw wmsWithdraw);

	/**
	 * WMS회수 목록 
	 * 
	 * @param WmsWithdraw
	 * @return Collection<WmsWithdraw>
	 * @author moon
	 * @since 2021. 03. 10
	 */
	Collection<WmsWithdraw> getWmsWithdrawList(WmsWithdraw wmsWithdraw);
	
	/**
	 *  출고처지정 지연재고 등록
	 * 
	 * @param WmsWithdraw
	 * @return int
	 * @author moon
	 * @since 2021. 04. 20
	 */
	void insertWmsTbIfDelifixQty(Delivery delivery);	
	
	/**
	 *  출고처지정 지연재고 삭제
	 * 
	 * @param WmsWithdraw
	 * @return int
	 * @author moon
	 * @since 2021. 04. 20
	 */
	void deleteWmsTbIfDelifixQty(Delivery delivery);
	
	/**
	 *  재회수지시
	 * 
	 * @param WmsWithdraw
	 * @return int
	 * @author moon
	 * @since 2021. 06. 24
	 */
	void updateReRecallOrder(Withdraw withdraw);
	
}
