lgy 21 시간 전
부모
커밋
8ffff6a86b
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      server/application/api/model/message/MessageModel.php

+ 8 - 8
server/application/api/model/message/MessageModel.php

@@ -50,25 +50,25 @@ class MessageModel extends ZskkDefaultModel {
             ->where('is_read',0)
             ->where('status',0)
             ->where('type',1)
-//            ->where('notice',0)
+            ->where('notice',0)
             ->count();
         return $res;
     }
 
     public function noticeUnread($id)
     {
-//        $res  = $this
-//            ->where('doctor_id',$id)
-//            ->where('type',1)
-//            ->where('notice',0)
-//            ->update(['notice'=>1]);
-//        return $res;
+        $res  = $this
+            ->where('doctor_id',$id)
+            ->where('type',1)
+            ->where('notice',0)
+            ->update(['notice'=>1]);
+        return $res;
     }
 
     public function getAppUnread($id,$insId)
     {
         $info = $this->where('is_read',0)
-//            ->where('notice',0)
+            ->where('notice',0)
             ->where("(institution_id='$insId' and doctor_id is null) or doctor_id='$id'")
             ->field("count(*) AS count,application_id")
             ->group('application_id')