|
@ -5,7 +5,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Date;
|
|
@ -18,12 +17,12 @@ public interface OutpatientDao extends JpaRepository<WlyyOutpatientDO, String>,
|
|
|
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType <> '3' and a.outpatientType <> '4' and a.status in(0,1,2)")
|
|
|
List<WlyyOutpatientDO> findByPatientList(String patient);
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType = '3' and a.status in(0,1,2)")
|
|
|
List<WlyyOutpatientDO> findByPatientAndDoctorList(String patient);
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType = ?2 and a.status in('0','1','2')")
|
|
|
List<WlyyOutpatientDO> findByPatientAndDoctorList(String patient,String outpatientType);
|
|
|
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType <> '3' and a.status in(3) order by a.createTime desc ")
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType <> '3' and a.status in('3') order by a.createTime desc ")
|
|
|
List<WlyyOutpatientDO> findByPatientListByStatus(String patient);
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType = ?2 and a.status in(3) order by a.createTime desc ")
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.outpatientType = ?2 and a.status in('3') order by a.createTime desc ")
|
|
|
List<WlyyOutpatientDO> findByPatientListByStatusAndType(String patient,String outpatientType);
|
|
|
|
|
|
@Query("from WlyyOutpatientDO a where a.patient = ?1 and a.hisStatus=1 and a.createTime>=?2 and a.createTime<=?3")
|