DoctorSchedulingTimesDao.java 903 B

123456789101112131415161718192021
  1. /*******************************************************************************
  2. * Copyright (c) 2005, 2014 springside.github.io
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. *******************************************************************************/
  6. package com.yihu.wlyy.repository;
  7. import java.util.Date;
  8. import org.springframework.data.jpa.repository.Query;
  9. import org.springframework.data.repository.PagingAndSortingRepository;
  10. import com.yihu.wlyy.entity.doctor.schedule.DoctorSchedulingTimes;
  11. public interface DoctorSchedulingTimesDao extends PagingAndSortingRepository<DoctorSchedulingTimes, Long> {
  12. // 查询三师团队视频预约情况
  13. @Query("select a.scheduling, a.appoDate, a.times from DoctorSchedulingTimes a where a.doctor = ?1 and a.appoDate between ?2 and ?3")
  14. Iterable<DoctorSchedulingTimes> findByTeam(String team, Date begin, Date end);
  15. }