...
|
...
|
@@ -29,8 +29,14 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
|
|
|
public function index(){
|
|
|
//医院总体时长统计
|
|
|
$hospital=Db::name('equipment')->select('hospital');
|
|
|
dump($hospital);
|
|
|
$data=Db::name('order')
|
|
|
->alias('a')
|
|
|
->field('b.hospital,count(*) as num')
|
|
|
->join('equipment b','a.eq_name=b.name')
|
|
|
->group('b.hospital')
|
|
|
->select();
|
|
|
dump($data);
|
|
|
|
|
|
|
|
|
//周统计
|
|
|
$week=array();
|
...
|
...
|
|