作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

order

... ... @@ -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);
//周统计
... ...