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