|  | @ -78,6 +78,9 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
 | 
	
		
			
				|  |  |     @Modifying
 | 
	
		
			
				|  |  |     int setSysMessageReaded(String doctor);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Query("from Message a where a.receiver = ?1 and relationCode = ?2 and a.type=?3 ")
 | 
	
		
			
				|  |  |     List<Message> findByReceiverAndRelationCode(String receiver,String relationCode,Integer type);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     //查询患者最近7天的体征异常记录
 | 
	
		
			
				|  |  |     @Query(value = "SELECT COUNT(1) FROM wlyy_message WHERE type = '2' and sender = ?1 and create_time>=date_add(now(),interval -7 day) ", nativeQuery = true)
 | 
	
		
			
				|  |  |     int findTzMessage(String patient);
 |