Browse Source

xiugai
tongji

刘桂岩 5 years ago
parent
commit
6d59134791

+ 3 - 2
application/manage/controller/Order.php

@@ -71,7 +71,7 @@ class Order extends Base {
 //            $whereArr["name"] = array("like", "%" . $name . "%");
 //        }
         $manage = Session::get('session_manager');
-        $rs = Db::table("remote_order")->where('hospital_id',$manage['institution_id'])->select();
+        $rs = Db::table("remote_order")->where('hospital_id','in',$manage['institution_id'])->select();
         echo json_encode($rs);
     }
     public function remotedatas() {
@@ -91,7 +91,8 @@ class Order extends Base {
 //            $whereArr["name"] = array("like", "%" . $name . "%");
 //        }
         $manage = Session::get('session_manager');
-        $rs = Db::table("remote_order")->where('super_hospital_id',$manage['institution_id'])->select();
+        $rs = Db::table("remote_order")->where('super_hospital_id','in',$manage['institution_id'])->buildSql();
+        var_dump($rs);die;
 //        foreach ()
         echo json_encode($rs);
     }

+ 2 - 2
application/manage/controller/Remote.php

@@ -59,7 +59,7 @@ class Remote extends Base {
             $whereArr["name"] = array("like", "%" . $name . "%");
         }*/
         $manage = Session::get('session_manager');
-        $rs = Db::table("remote_cost")->where('hospital_id',$manage['institution_id'])->select();
+        $rs = Db::table("remote_cost")->where('hospital_id','in',$manage['institution_id'])->select();
         echo json_encode($rs);
     }
 
@@ -80,7 +80,7 @@ class Remote extends Base {
             $whereArr["name"] = array("like", "%" . $name . "%");
         }*/
         $manage = Session::get('session_manager');
-        $rs = Db::table("remote_cost")->where('super_hospital_id',$manage['institution_id'])->select();
+        $rs = Db::table("remote_cost")->where('super_hospital_id','in',$manage['institution_id'])->select();
         echo json_encode($rs);
     }