@ -17,7 +17,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
@Query("select count(a) from Message a where a.type =1 and a.read= 1 and a.receiver=?1 ")
int amountUnreadByReceiver(String doctor);
@Query("select count(a) from Message a where a.read = 0 and over ='0' and a.receiver=?1 and a.type=3 ")
@Query("select count(a) from Message a where a.read = 1 and a.receiver=?1 and a.type=3 ")
int amountUnreadSystemByReceiver(String doctor);