|
@ -25,11 +25,11 @@ public interface ConsultTeamDao extends PagingAndSortingRepository<ConsultTeam,
|
|
|
@Query("select a from ConsultTeam a where a.patient = ?1 and a.del = '1' and a.status = 0")
|
|
|
List<ConsultTeam> findUnfinishedConsult(String patient);
|
|
|
|
|
|
@Query("select a from ConsultTeam a,ConsultTeamDoctor b where a.code = b.consult and a.patient = ?1 and b.to = ?2 and a.del = '1' and a.status = 0")
|
|
|
@Query("select a from ConsultTeam a,ConsultTeamDoctor b where a.consult = b.consult and a.patient = ?1 and b.to = ?2 and a.del = '1' and a.status = 0")
|
|
|
List<ConsultTeam> findUnfinishedConsultType(String patient,String doctor);
|
|
|
|
|
|
// 统计未完成的数量
|
|
|
@Query("select count(1) from ConsultTeam a, ConsultTeamDoctor b where a.code = b.consult and a.patient = ?1 and a.status = 0 and a.del = '1'and b.to=?2")
|
|
|
@Query("select count(1) from ConsultTeam a, ConsultTeamDoctor b where a.consult = b.consult and a.patient = ?1 and a.status = 0 and a.del = '1'and b.to=?2")
|
|
|
int countByPatient(String patient,String doctor);
|
|
|
|
|
|
// 被指定且未结束列表
|