|
@ -38,17 +38,10 @@ public interface ConsultDao extends PagingAndSortingRepository<Consult, Long>, J
|
|
|
@Query("select a from Consult a,ConsultTeam b where a.code = b.consult and a.code = ?1 ")
|
|
|
Consult findTypeByCode(String code);
|
|
|
|
|
|
// 按类型查询患者咨询记录
|
|
|
@Query("select a.id,a.type,a.code,a.title,a.symptoms,a.czrq,b.status,b.doctor,b.evaluate,a.relationCode from Consult a,ConsultTeam b where a.code = b.consult and a.patient = ?1 and a.id < ?2 and a.del = '1' and a.type=?3 order by a.czrq desc")
|
|
|
Page<Object> findByPatientAndType(String patient, long id,Integer type,Pageable pageRequest);
|
|
|
|
|
|
// 按类型查询患者咨询记录
|
|
|
@Query("select a.id,a.type,a.code,a.title,a.symptoms,a.czrq,b.status,b.doctor,b.evaluate,a.relationCode from Consult a,ConsultTeam b where a.code = b.consult and a.patient = ?1 and a.del = '1' and a.type=?2 order by a.czrq desc")
|
|
|
Page<Object> findByPatientAndType(String patient,Integer type, Pageable pageRequest);
|
|
|
|
|
|
@Query("select a.id,a.type,a.code,a.title,a.symptoms,a.czrq,b.status,b.doctor,b.evaluate,a.relationCode from Consult a,ConsultTeam b where a.code = b.consult and a.patient = ?1 and a.id < ?3 and a.del = '1' and a.type=?4 and a.symptoms like ?2 order by a.czrq desc")
|
|
|
Page<Object> findByPatientAndType(String patient, String title, long id,Integer type, Pageable pageRequest);
|
|
|
|
|
|
@Query("select a.id,a.type,a.code,a.title,a.symptoms,a.czrq,b.status,b.doctor,b.evaluate,a.relationCode from Consult a,ConsultTeam b where a.code = b.consult and a.patient = ?1 and a.del = '1' and a.type=?3 and a.symptoms like ?2 order by a.czrq desc")
|
|
|
Page<Object> findByPatientAndType(String patient, String title,Integer type, Pageable pageRequest);
|
|
|
}
|