|
@ -66,7 +66,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.prescriptionStatus=?2 and a.type in (6,7) order by a.createTime desc")
|
|
|
List<Message> getSysTemMessageByPrescription(String doctor, String prescriptionStatus);
|
|
|
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.type not in (1,2,6,7,12,101,14,15,301) and (a.del = '1' or a.del is null) ")
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.type not in (1,2,6,7,12,101,14,15,301,16,17,18) and (a.del = '1' or a.del is null) ")
|
|
|
List<Message> getSystemMessage(String doctor, Pageable pageRequest);
|
|
|
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.type=?2 and a.prescriptionStatus='0' ")
|