DoctorSchedulingDao.java 802 B

123456789101112131415161718
  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 org.springframework.data.jpa.repository.Query;
  8. import org.springframework.data.repository.PagingAndSortingRepository;
  9. import com.yihu.wlyy.entity.doctor.schedule.DoctorScheduling;
  10. public interface DoctorSchedulingDao extends PagingAndSortingRepository<DoctorScheduling, Long> {
  11. // 查询三师团队视频预约排班设置
  12. @Query("select a from DoctorScheduling a where a.doctor = ?1 and a.type = 1 and a.del = '1'")
  13. Iterable<DoctorScheduling> findByTeam(String team);
  14. }