package com.uas.platform.b2b.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.model.MakeOrderReply;

@Repository
public interface MakeOrderReplyDao extends JpaSpecificationExecutor<MakeOrderReply>, JpaRepository<MakeOrderReply, Long> {

	/**
	 * (买家)按回复记录的状态查找回复记录
	 * 
	 * @param enUU
	 * @param status
	 * @return
	 */
	public List<MakeOrderReply> findByOrderEnUUAndSendStatus(Long orderEnUU, Short backStatus);

	/**
	 * (卖家)按回复记录的状态查找回复记录
	 * 
	 * @param vendUU
	 * @param status
	 * @return
	 */
	public List<MakeOrderReply> findByOrderVendUUAndBackStatus(Long orderVendUU, Short sendStatus);
}
