|
@@ -70,7 +70,7 @@ class Doctor extends Backend
|
|
|
['institution i','doctors.institution_id = i.id','LEFT'],
|
|
|
['department d','doctors.department_id = d.id','LEFT']
|
|
|
];
|
|
|
- $field = ['doctors.*','i.name as institution_name','d.department_name'];
|
|
|
+ $field = ['doctors.*','i.name AS institution_name','d.department_name'];
|
|
|
// 过滤机构
|
|
|
$childInsIds = $this->auth->getMyInsId();
|
|
|
if($childInsIds == false){
|
|
@@ -105,8 +105,11 @@ class Doctor extends Backend
|
|
|
}
|
|
|
}
|
|
|
foreach ($list as &$val){
|
|
|
- if(is_null($val['status'])){
|
|
|
- $val['status'] = 0;
|
|
|
+ if(is_null($val['STATUS'])){
|
|
|
+ $val['STATUS'] = 0;
|
|
|
+ }
|
|
|
+ foreach ($val as $k2=>$v2){
|
|
|
+ $val[strtolower($k2)] = $v2;
|
|
|
}
|
|
|
}
|
|
|
$result = array("total" => $total, "rows" => $list);
|