作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

... ... @@ -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();
... ...
... ... @@ -45,7 +45,7 @@
<option value=''>全部</option>
<notempty name="note_category">
<foreach name="note_category" item="vo">
<option value="{$vo.note}" <eq name="note" value="{$vo.note}">selected</eq>>{$vo.note}</option>
<option value="$vo.note" <eq name="note" value="{$vo.note}">selected</eq>>{$vo.note}</option>
</foreach>
</notempty>
</select>
... ...