package com.palmnest.service.estateserve;

import com.palmnest.application.dto.output.BillOperationDto;
import com.palmnest.model.emig.BillOperationRecodes;
import com.palmnest.service.GenericManager;

import java.util.List;


public interface BillOperationRecodesManager extends GenericManager<BillOperationRecodes, Integer> {

	public BillOperationRecodes getRecodeBySourId(Long sourId, Integer type, Integer operationType);

	public void saveRecode(Long sourId, Integer type, Integer opType, Long creator, String operation, String describe);

	public void saveRecodeSlip(Long sourId, Integer type, Integer opType, Long creator, String operation, String describe, String slipBill, String remark);

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

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