|
@ -41,7 +41,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
* @param pageable
|
|
* @param pageable
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and a.status > 0")
|
|
|
|
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and a.status > 0")
|
|
Page<Object> findByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
Page<Object> findByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -51,7 +51,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
* @param pageable
|
|
* @param pageable
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and a.status = '2'")
|
|
|
|
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and a.status = '2'")
|
|
Page<Object> findPlanByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
Page<Object> findPlanByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ public interface FollowUpDao extends PagingAndSortingRepository<Followup, Long>,
|
|
* @param pageable
|
|
* @param pageable
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and (a.status = '1' or a.status = '3')")
|
|
|
|
|
|
@Query("select d.code,d.name,d.photo,a.followupType,a.followupClass,a.status,a.createTime,a.updateTime,a.followupManagerStatus,c.code,c.name,c.photo" + ",a.followupDate,a.followupPlanDate,a.followupNextDate,a.id,a.followupNo,a.prescriptionCode from Followup a, Doctor d, Doctor c where a.doctorCode = d.code and a.creater = c.code and a.patientCode = ?1 and a.adminTeamCode = ?2 and (a.status = '1' or a.status = '3')")
|
|
Page<Object> findRecordByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
Page<Object> findRecordByPatientAndTeam(String patient, Long teamCode, Pageable pageable);
|
|
|
|
|
|
/**
|
|
/**
|