|
@ -52,7 +52,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@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,6) order by a.czrq desc")
|
|
|
@Query("select a from Message a where a.read= 1 and a.receiver = ?1 and a.type not in (1,2,6,7) order by a.czrq desc")
|
|
|
List<Message> getSystemMessageUnread(String doctor);
|
|
|
|
|
|
@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")
|