ExchangeGoodsDao.java 797 B

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