|
@ -28,6 +28,6 @@ public interface ConsultDao extends PagingAndSortingRepository<Consult, Long>, J
|
|
|
@Query("select a.id,a.type,a.code,a.title,a.symptoms,a.czrq,b.status from Consult a,ConsultTeam b where a.code = b.consult and a.patient = ?1 and a.id < ?2 and a.del = '1'order by a.czrq desc")
|
|
|
Page<Object> findByPatient(String patient, long id, Pageable pageRequest);
|
|
|
|
|
|
@Query("select count(a) from Consult a,ConsultTeamDoctor b where a.code = b.consult and a.patient=?1 and b.to=?2 ")
|
|
|
@Query("select count(a) from Consult a,ConsultTeamDoctor b where a.code = b.consult and a.patient=?1 and b.to=?2 and b.from is null")
|
|
|
Integer findByPatient(String patientCode,String doctorCode);
|
|
|
}
|