浏览代码

消息统计修改

8 年之前
父节点
当前提交
4223d08ede
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      patient-co-statistics/src/main/java/com/yihu/wlyy/statistics/dao/MessageDao.java

+ 1 - 1
patient-co-statistics/src/main/java/com/yihu/wlyy/statistics/dao/MessageDao.java

@ -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);