|
@ -20,7 +20,7 @@ import java.util.List;
|
|
|
|
|
|
public interface MessageDao extends PagingAndSortingRepository<Message, Long>, JpaSpecificationExecutor<Message> {
|
|
|
|
|
|
@Query("select count(1) from Message a where a.type =1 and a.read= 1 and a.receiver=?1 ")
|
|
|
@Query("select count(1) from Message a where a.type in(1,101) and a.read= 1 and a.receiver=?1 ")
|
|
|
Integer amountUnreadByReceiver(String doctor);
|
|
|
|
|
|
@Query("select a from Message a where a.type =1 and a.read= 1 and a.receiver=?1 order by a.czrq desc")
|