...
|
...
|
@@ -32,12 +32,11 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
$where='';
|
|
|
$where1=[];
|
|
|
$where2=[];
|
|
|
$note="";
|
|
|
if (!empty($param['hospital'])){
|
|
|
$where="hospital='".$param['hospital']."' AND";
|
|
|
$where1['hospital']=$param['hospital'];
|
|
|
$note=Db::name('equipment')->where(['hospital'=>$param['hospital'],'is_delete'=>0])->group('note')->select();
|
|
|
$this->assign('note_category',$note);
|
|
|
var_dump($note);
|
|
|
}
|
|
|
if (!empty($param['note'])){
|
|
|
$where2['note']=$param['note'];
|
...
|
...
|
@@ -131,7 +130,7 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
|
|
|
|
|
|
$this->assign('interval',json_encode($interval));
|
|
|
|
|
|
$this->assign('note_category',$note);
|
|
|
$this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
|
|
|
$this->assign('note', isset($param['note']) ? $param['note'] : '');
|
|
|
return $this->fetch();
|
...
|
...
|
|