package com.uas.platform.b2b.mobile.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.uas.platform.b2b.mobile.model.ApprovalLog;

@Repository
public interface ApprovalLogDao extends JpaRepository<ApprovalLog, Long>, JpaSpecificationExecutor<ApprovalLog> {

	/**
	 * 通过单据id查询记录
	 * 
	 * @param keyvalue
	 * @return
	 */
	public List<ApprovalLog> getByKeyvalueAndCaller(Long keyvalue, String caller);

	/**
	 * 通过来源id查询记录
	 * 
	 * @param sourceid
	 * @return
	 */
	public List<ApprovalLog> getBySourceid(Long sourceid);
}
