package com.ssj.dao.sys.fx.dao;

import java.util.List;

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

import com.ssj.bean.sys.fx.domain.MerchantPlatOrder;

@Repository
public interface MerchantPlatOrderDao extends JpaRepository<MerchantPlatOrder, String> {

	@Query(nativeQuery = true, value = " SELECT * from fx_merchant_plat_order t WHERE t.merchant_id=?1 ORDER BY t.create_time DESC")
	public List<MerchantPlatOrder> findMerchantPlatOrderAll(String merchantId);
	
}
