package com.palmnest.dao.estateserve;


import java.util.List;

import com.palmnest.dao.GenericDao;
import com.palmnest.model.emig.BillOperationRecodes;

public interface BillOperationRecodesDao extends GenericDao<BillOperationRecodes, Integer> {

	/**
	 * 查出相对应的操作记录
	 *
	 * @param sourId单据id
	 * @param type单据类型
	 * @param operationType操作类型
	 * @return
	 */
	public BillOperationRecodes getRecodeBySourId(Long sourId, Integer type, Integer operationType);

	/**
	 * 根据来源id查询对应的操作记录
	 *
	 * @param sourId
	 * @param type
	 * @return
	 */
	public List<BillOperationRecodes> getRecodeBySourId(Long sourId, Integer type);

	public Integer deleteRecode(Long orderId, Integer type) throws Exception;

	/**
	 * 根据来源单据id来源单据类型以及操作类型(多个类型)
	 *
	 * @param sourId
	 * @param type
	 * @param operationType
	 * @return
	 */
	public BillOperationRecodes getRecodeBySourId(Long sourId, Integer type, String operationType);
}
