|
@ -168,28 +168,28 @@ public interface ConsultTeamDao extends PagingAndSortingRepository<ConsultTeam,
|
|
|
@Query("SELECT a FROM ConsultTeam a WHERE a.patient=?1 and a.status=0 and a.del=1 and a.type=6")
|
|
|
ConsultTeam findFamousConsultByPatient(String uid);
|
|
|
//名医咨询 -全部
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.id < ?2 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.id < ?2 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorAllList(String uid, long id, Pageable pageRequest);
|
|
|
//名医咨询 -全部
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorAllList(String uid, Pageable pageRequest);
|
|
|
//名医咨询 -全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.id < ?2 and a.symptoms like ?3 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.id < ?2 and a.symptoms like ?3 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorAllList(String uid, long id,String title, Pageable pageRequest);
|
|
|
//名医咨询 -全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.symptoms like ?2 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.symptoms like ?2 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorAllList(String uid,String title, Pageable pageRequest);
|
|
|
//名医咨询 -根据status
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.id < ?2 and a.status = ?3 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.id < ?2 and a.status = ?3 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorDoingList(String uid, long id,Integer type, Pageable pageRequest);
|
|
|
//名医咨询 -根据status
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.status = ?2 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 )and b.to = ?1 and a.status = ?2 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorDoingList(String uid,Integer type, Pageable pageRequest);
|
|
|
//名医咨询 -根据status 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.id < ?2 and a.symptoms like ?3 and a.status = ?4 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.to = ?1 and a.id < ?2 and a.symptoms like ?3 and a.status = ?4 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorDoingList(String uid, long id,String title,Integer type, Pageable pageRequest);
|
|
|
//名医咨询 -根据status 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.to = ?1 and a.symptoms like ?2 and a.status = ?3 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 )and b.to = ?1 and a.symptoms like ?2 and a.status = ?3 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findFamousDoctorDoingList(String uid,String title,Integer type, Pageable pageRequest);
|
|
|
|
|
|
@Query("select a from ConsultTeam a where a.type=?3 and a.del = '1' and a.patient=?1 and a.doctor=?2 and a.status=0 ")
|
|
@ -251,18 +251,18 @@ public interface ConsultTeamDao extends PagingAndSortingRepository<ConsultTeam,
|
|
|
@Query("FROM ConsultTeam a where a.type=?1 and a.adminTeamId is null")
|
|
|
List<ConsultTeam> findByTypeAndAdminTeamIdIsNull(Integer s);
|
|
|
//名医咨询 -我咨询的全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.from = ?1 and a.id < ?2 and a.symptoms like ?3 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.from = ?1 and a.id < ?2 and a.symptoms like ?3 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findMyFamousDoctorAllList(String uid, long id, String title, Pageable pageRequest);
|
|
|
|
|
|
//名医咨询 -我咨询的全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.from = ?1 and a.symptoms like ?2 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.from = ?1 and a.symptoms like ?2 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findMyFamousDoctorAllList(String uid, String title, Pageable pageRequest);
|
|
|
|
|
|
//名医咨询 -我咨询的全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.from = ?1 and a.id < ?2 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.from = ?1 and a.id < ?2 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findMyFamousDoctorAllList(String uid, Long id, Pageable pageRequest);
|
|
|
|
|
|
//名医咨询 -我咨询的全部 带symptoms
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.type=6 and b.from = ?1 and a.del = '1' and b.del = '1'")
|
|
|
@Query("select a from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and (a.type=6 or a.type=7 ) and b.from = ?1 and a.del = '1' and b.del = '1'")
|
|
|
Page<ConsultTeam> findMyFamousDoctorAllList(String uid, Pageable pageRequest);
|
|
|
}
|