wangjun 4 лет назад
Родитель
Сommit
33b22f2069

+ 2 - 3
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/dao/PatientRegisterDao.java

@ -14,11 +14,10 @@ import java.util.List;
public interface PatientRegisterDao extends PagingAndSortingRepository<WlyyPatientRegisterDO, String>, JpaSpecificationExecutor<WlyyPatientRegisterDO> {
    List<WlyyPatientRegisterDO> findByPatientAndDate(String patient,String date);
    @Query("select a from WlyyPatientRegisterDO a where a.patient = ?1 and a.date =?2 and a.doctor=?3 and a.del=?4 ")
    List<WlyyPatientRegisterDO> findByPatientAndDateAndDoctorAndDel(String patient,String date,String doctor,Integer del);
    @Query("select a from WlyyPatientRegisterDO a where a.patient = ?1 and a.createTime=?2 and a.del=?3 ")
    List<WlyyPatientRegisterDO> findByPatientAndCreateTimeAndDel(String patient, Date createTime,Integer del);
    @Query("select a from WlyyPatientRegisterDO a where a.registerNo = ?1 and a.del=1 ")
    WlyyPatientRegisterDO findByRegisterNo(String registerNo);
}