|
@ -71,6 +71,10 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
|
|
|
@Query("update Message a set a.prescriptionStatus=?2 where a.relationCode = ?1 and a.type=?3 ")
|
|
|
int updatePreScriptionMessage(String relationCode,String prescriptionStatus,Integer type);
|
|
|
|
|
|
@Query("update Message a set a.read = 0,a.over = '0' where a.relationCode = ?1 and a.type = ?2")
|
|
|
@Modifying
|
|
|
int updatePreScriptionMessage(String relationCode,Integer type);
|
|
|
|
|
|
@Query("update Message a set a.read = 0,a.over = '0' where a.receiver = ?1 and a.type = ?2")
|
|
|
@Modifying
|
|
|
int setMessageReaded(String doctor, Integer type);
|