|
@ -98,7 +98,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query("from Message a where a.type = 8 and a.state=0 and a.del='1' and a.over='0' and relationCode = ?1 ")
|
|
|
Message findByRelationCode(String relationCode);
|
|
|
|
|
|
@Query("from Message a where a.type = 12 and a.del='1' and a.over='1' and receiver = ?1 ")
|
|
|
@Query("from Message a where a.type = 12 and a.del='1' and a.over='1' and receiver = ?1 order by a.createTime desc")
|
|
|
List<Message> findByReceiverCallService(String doctor);
|
|
|
|
|
|
@Query("select a from Message a where a.receiver = ?1 and a.type=?2 ")
|