FamousDoctorTimesRemainDao.java 718 B

123456789101112131415161718192021
  1. package com.yihu.wlyy.repository;
  2. import com.yihu.wlyy.entity.doctor.DoctorFamousConsultTimesRemain;
  3. import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
  4. import org.springframework.data.repository.PagingAndSortingRepository;
  5. /**
  6. * Created by JKZL-A on 2016/9/19.
  7. */
  8. public interface FamousDoctorTimesRemainDao extends PagingAndSortingRepository<DoctorFamousConsultTimesRemain, Long>,
  9. JpaSpecificationExecutor<DoctorFamousConsultTimesRemain> {
  10. /**
  11. * 查询医生剩余咨询次数
  12. *
  13. * @param doctor 医生
  14. * @param consultDate 咨询日期
  15. * @return
  16. */
  17. DoctorFamousConsultTimesRemain findByDoctorAndConsultDate(String doctor,String consultDate);
  18. }