|
@ -18,10 +18,10 @@ import com.yihu.wlyy.entity.patient.PatientHealthGuidance;
|
|
|
|
|
|
public interface PatientHealthGuidanceDao extends PagingAndSortingRepository<PatientHealthGuidance, Long>, JpaSpecificationExecutor<PatientHealthGuidance> {
|
|
|
|
|
|
@Query("select b.name, b.photo, a.id, a.content, a.czrq,b.level,a.readStatus from PatientHealthGuidance a, Doctor b where a.patient = ?1 and a.doctor = b.code and a.del = '1' order by a.id desc")
|
|
|
@Query("select b.name, b.photo, a.id, a.content, a.createTime,b.level,a.readStatus from PatientHealthGuidance a, Doctor b where a.patient = ?1 and a.doctor = b.code and a.del = '1' order by a.id desc")
|
|
|
Page<Object> findByPatient(String patient, Pageable pageRequest);
|
|
|
|
|
|
@Query("select b.name, b.photo, a.id, a.content, a.czrq,b.level,a.readStatus from PatientHealthGuidance a, Doctor b where a.patient = ?1 and a.doctor = b.code and a.id < ?2 and a.del = '1' order by a.id desc")
|
|
|
@Query("select b.name, b.photo, a.id, a.content, a.createTime,b.level,a.readStatus from PatientHealthGuidance a, Doctor b where a.patient = ?1 and a.doctor = b.code and a.id < ?2 and a.del = '1' order by a.id desc")
|
|
|
Page<Object> findByPatient(String patient, long id, Pageable pageRequest);
|
|
|
|
|
|
@Query("select b.name, b.photo, a.id, a.content, a.czrq from PatientHealthGuidance a, Patient b where a.doctor = ?1 and a.patient = b.code and a.del = '1' order by a.id desc")
|