package com.ssj.dao.sys.award.dao;


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

import com.ssj.bean.sys.award.domain.AwardStock;

@Repository
public interface AwardStockDao extends JpaRepository<AwardStock, String>{
	
	
	@Query(nativeQuery = true, value = " SELECT * from tb_award_stock t WHERE t.merchant_id=?1 and t.award_material_id=?2 LIMIT 1 ")
	public AwardStock getAwardStockByMaterialId(String merchantId,String awardMaterialId);
	
	
}
