|
@ -43,6 +43,9 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.sender=?2 and a.tzType=?3 order by a.czrq desc")
|
|
|
List<Message> getHealthIndexMessageByPatient(String doctor,String patient,String type,Pageable pageRequest);
|
|
|
|
|
|
@Query("update Message a set a.read = 0 where a.receiver = ?1 and a.sender=?2 and a.tzType=?3")
|
|
|
int updateHealthIndexMessageByPatient(String doctor,String patient,String type);
|
|
|
|
|
|
@Query("select a from Message a where a.read= 1 and a.receiver = ?1 and a.type not in (1,2) order by a.czrq desc")
|
|
|
List<Message> getSystemMessageUnread(String doctor);
|
|
|
|