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.MerchantSign;

@Repository
public interface MerchantSignDao extends JpaRepository<MerchantSign, String> {
	
	
	@Query(nativeQuery = true, value = " SELECT * FROM `fx_merchant_sign` t WHERE t.merchant_id=?1 AND t.`status`=1 AND TO_DAYS(t.sign_time)<=TO_DAYS(NOW()) AND TO_DAYS(t.end_sign_time)>TO_DAYS(NOW()) order by t.end_sign_time desc ")
	public List<MerchantSign> getMerchantSignByCur(String merchantId);
	
	
}
