|
@ -45,7 +45,7 @@ public interface PrescriptionDao extends PagingAndSortingRepository<WlyyPrescrip
|
|
@Query("update WlyyPrescriptionDO p set p.status=?1 ,p.finishTime =?2 where p.outpatientId=?3")
|
|
@Query("update WlyyPrescriptionDO p set p.status=?1 ,p.finishTime =?2 where p.outpatientId=?3")
|
|
void updateStatusByOutPatientId(Integer status, Date date,String id);
|
|
void updateStatusByOutPatientId(Integer status, Date date,String id);
|
|
|
|
|
|
@Query("select a from WlyyPrescriptionDO a where a.outpatientId = ?1 and a.checkStatus <>4 ")
|
|
|
|
|
|
@Query("select a from WlyyPrescriptionDO a where a.outpatientId = ?1 and a.checkStatus <>4 order by a.createTime desc ")
|
|
List<WlyyPrescriptionDO> findByOutpatientId(String outpatientId);
|
|
List<WlyyPrescriptionDO> findByOutpatientId(String outpatientId);
|
|
|
|
|
|
List<WlyyPrescriptionDO> findById(String id);
|
|
List<WlyyPrescriptionDO> findById(String id);
|