...
|
...
|
@@ -34,8 +34,14 @@ class AdminStatisticsController extends AdminBaseController{ |
|
|
->field('b.hospital,count(*) as num')
|
|
|
->join('equipment b','a.eq_name=b.name')
|
|
|
->group('b.hospital')
|
|
|
->select();
|
|
|
dump($data);
|
|
|
->select()->toArray();
|
|
|
$hospital=array();
|
|
|
$num=array();
|
|
|
foreach ($data as $k=>$v){
|
|
|
$hospital[]=$v['hospital'];
|
|
|
$num[]=$v['num'];
|
|
|
}
|
|
|
dump($hospital,$num);
|
|
|
|
|
|
|
|
|
//周统计
|
...
|
...
|
|