|
@@ -79,6 +79,10 @@ class Application extends Base
|
|
|
$parent_name = array();
|
|
|
foreach($parent_hosp as $v){
|
|
|
$phname = DB::table("institution")->where('id',$v)->cache(300)->field(['id','name'])->find();
|
|
|
+ log::record('上级医院----'.json_encode($phname));
|
|
|
+ if(!isset($phname['id']) || empty($phname['id'])){
|
|
|
+ $phname['id'] = $v;
|
|
|
+ }
|
|
|
$doctor_info = DB::table('doctors')->where('institution_id',$v)->field('id,realname,is_admin')->order('is_admin desc')->select();
|
|
|
foreach($doctor_info as $key=>$value){
|
|
|
if($value['is_admin'] == 1){
|