TaskGoodsDao.java 828 B

1234567891011121314151617181920212223242526
  1. package com.yihu.jw.dao;/**
  2. * Created by nature of king on 2018/6/8.
  3. */
  4. import com.yihu.jw.entity.health.bank.ActivityDO;
  5. import com.yihu.jw.entity.health.bank.TaskGoodsDO;
  6. import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
  7. import org.springframework.data.jpa.repository.Query;
  8. import org.springframework.data.repository.PagingAndSortingRepository;
  9. import java.util.List;
  10. /**
  11. * @author wangzhinan
  12. * @create 2018-06-08 15:28
  13. * @desc 商品 dao
  14. **/
  15. public interface TaskGoodsDao extends PagingAndSortingRepository<TaskGoodsDO,String>,JpaSpecificationExecutor<TaskGoodsDO> {
  16. @Query("select t from TaskGoodsDO t where t.activityId=?1")
  17. List<TaskGoodsDO> selectByActivityId(String activityId);
  18. @Query("select t from TaskGoodsDO t where t.id=?1")
  19. TaskGoodsDO selectById(String di);
  20. }