AccountDao.java 718 B

12345678910111213141516171819
  1. package com.yihu.jw.dao;/**
  2. * Created by nature of king on 2018/5/10.
  3. */
  4. import com.yihu.jw.entity.health.bank.AccountDO;
  5. import com.yihu.jw.entity.health.bank.ActivityRuleDO;
  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-10 11:15
  12. * @desc health bank account dao
  13. **/
  14. public interface AccountDao extends PagingAndSortingRepository<AccountDO,String>,JpaSpecificationExecutor<AccountDO> {
  15. @Query("select t from AccountDO t where t.patientId=?1 and t.status=1")
  16. AccountDO selectByPatientId(String patientId);
  17. }