@ -363,7 +363,7 @@ public interface SignFamilyDao extends PagingAndSortingRepository<SignFamily, Lo
* @param patient
* @return
*/
@Query("select a from SignFamily a where a.patient = ?1 and a.status <> -1 and a.status <> -2")
@Query("select a from SignFamily a where a.patient = ?1 and a.status <> -1 and a.status <> -2 order by a.czrq")
List<SignFamily> findAllActiveSignByPatient(String patient);
@Query("select a.patient from SignFamily a where a.doctor = ?1 and a.type = 2 and a.status > 0 and a.doctorHealth is null")
@ -24,7 +24,7 @@ public interface SignFamilyRenewDao extends PagingAndSortingRepository<SignFamil
@Query(value = "select a from SignFamilyRenew a where a.patient = ?1 and a.status <> -1 and a.status <> -2")
@Query(value = "select a from SignFamilyRenew a where a.patient = ?1 and a.status <> -1 and a.status <> -2 order by a.czrq")
List<SignFamilyRenew> findAllActiveSignByPatient(String patient);
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3 ")