作者 董瑞恩

interface

... ... @@ -30,7 +30,9 @@ class AdminStatisticsController extends AdminBaseController{
public function index(){
$param=$this->request->param();
$where=array();
dump($param);
if (!empty($param['hospital'])){
$where['hospital']
}
//医院总体时长统计
$data=Db::name('order')
->alias('a')
... ... @@ -99,6 +101,14 @@ class AdminStatisticsController extends AdminBaseController{
$this->assign('interval',json_encode($interval));
$this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
$SQL=Db::name('order')
->alias('a')
->field('b.hospital')
->join('equipment b','a.eq_name=b.name')
->getLastSql();
dump($SQL);
return $this->fetch();
}
... ...