Browse Source

问诊医生的过滤

lizhen_gitee 6 months ago
parent
commit
8781e0a876

+ 14 - 0
application/api/controller/Index.php

@@ -42,6 +42,20 @@ class Index extends Api
             'd.doctor_status' => 1,
         ];
 
+        //问诊模式,1=图文问诊,21=视频问诊排班模式,2=视频问诊即时模式
+        $type = input('type',0);
+        if($type == 1){
+            $where['info.typing_switch'] = 1;
+        }
+        if($type == 21){
+            $where['info.video_switch'] = 1;
+            $where['info.video_model']  = 1;
+        }
+        if($type == 22){
+            $where['info.video_switch'] = 1;
+            $where['info.video_model']  = 2;
+        }
+
         //科室id
         $keshi_id = input('keshi_id',0);
         if($keshi_id){

+ 1 - 0
application/api/controller/tvuser/Tvdoctor.php

@@ -26,6 +26,7 @@ class Tvdoctor extends Api
             'd.status' => 1,
             'd.doctor_status' => 1,
             'info.video_switch' => 1,
+            'info.video_model'  => 2,//只要即时的
         ];
 
         //科室id