package com.yihu.jw.dao;/** * Created by nature of king on 2018/5/3. */ import com.yihu.jw.entity.health.bank.ExchangeGoodsDO; import com.yihu.jw.entity.health.bank.TaskDO; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; /** * @author wangzhinan * @create 2018-05-03 15:28 * @desc exchange goods dict **/ public interface ExchangeGoodsDao extends PagingAndSortingRepository,JpaSpecificationExecutor { @Query("select t from ExchangeGoodsDO t where t.activityGoodsId = ?1 and t.patientId = ?2") ExchangeGoodsDO selectByActivityGoodsIdAndPatientId(String activityGoodsId,String patientId); }