|
@ -27,9 +27,12 @@ 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")
|
|
List<SignFamilyRenew> findAllActiveSignByPatient(String patient);
|
|
List<SignFamilyRenew> findAllActiveSignByPatient(String patient);
|
|
|
|
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3")
|
|
|
|
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3 ")
|
|
List<SignFamilyRenew> findByDoctorAndPatient(String doctor,String patient,String signYear);
|
|
List<SignFamilyRenew> findByDoctorAndPatient(String doctor,String patient,String signYear);
|
|
|
|
|
|
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3 and a.status = 0")
|
|
|
|
List<SignFamilyRenew> findByDoctorAndPatientStatus0(String doctor,String patient,String signYear);
|
|
|
|
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3 and a.status = 1 and a.expensesStatus ='1'")
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctor =?1 and a.patient = ?2 and a.signYear =?3 and a.status = 1 and a.expensesStatus ='1'")
|
|
List<SignFamilyRenew> findByDoctorAndPatientIsValid(String doctor,String patient,String signYear);
|
|
List<SignFamilyRenew> findByDoctorAndPatientIsValid(String doctor,String patient,String signYear);
|
|
|
|
|
|
@ -39,6 +42,9 @@ public interface SignFamilyRenewDao extends PagingAndSortingRepository<SignFamil
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctorHealth =?1 and a.patient = ?2 and a.signYear =?3")
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctorHealth =?1 and a.patient = ?2 and a.signYear =?3")
|
|
List<SignFamilyRenew> findByDoctorHealthAndPatient(String doctorHealth,String patient,String signYear);
|
|
List<SignFamilyRenew> findByDoctorHealthAndPatient(String doctorHealth,String patient,String signYear);
|
|
|
|
|
|
|
|
@Query(value = "select a from SignFamilyRenew a where a.doctorHealth =?1 and a.patient = ?2 and a.signYear =?3 and a.status=0")
|
|
|
|
List<SignFamilyRenew> findByDoctorHealthAndPatientStatus0(String doctorHealth,String patient,String signYear);
|
|
|
|
|
|
// 查询患者已生效的家庭续签约
|
|
// 查询患者已生效的家庭续签约
|
|
@Query("select a from SignFamilyRenew a where a.patient = ?1 and a.type = 2 and a.status = 0")
|
|
@Query("select a from SignFamilyRenew a where a.patient = ?1 and a.type = 2 and a.status = 0")
|
|
SignFamilyRenew findSigningByPatient(String patient);
|
|
SignFamilyRenew findSigningByPatient(String patient);
|