|
@ -65,6 +65,6 @@ public interface PatientDao extends PagingAndSortingRepository<Patient, Long> {
|
|
|
@Query("select distinct p.openid from Patient p where p.openid is not null and p.openid <> '' ")
|
|
|
List<String> findOpenids();
|
|
|
|
|
|
@Query(value=" select p.* from wlyy_patient p INNER JOIN wlyy_sign_family s on s.patient = p.code WHERE s.status > 0 and p.disease >0 and p.status>0 and s.admin_team_code = ?1",nativeQuery = true)
|
|
|
@Query(value=" select distinct p.* from wlyy_patient p INNER JOIN wlyy_sign_family s on s.patient = p.code WHERE s.status > 0 and p.disease >0 and p.status>0 and s.admin_team_code = ?1",nativeQuery = true)
|
|
|
List<Patient> findAllSignPatientTeamcode(String teamcode);
|
|
|
}
|