...
|
...
|
@@ -35,7 +35,7 @@ class AdminAllStatisticsController extends AdminBaseController{ |
|
|
->field('a.*,count(a.eq_name) as num,sum(a.time) as sumTime')
|
|
|
// ->join('equipment b','a.eq_name=b.name')
|
|
|
->join('users c','a.users_id=c.id')
|
|
|
->group('a.eq_name')
|
|
|
->group('a.users_id')
|
|
|
->order('start_time','desc')
|
|
|
->paginate(10)->each(function ($item){
|
|
|
$item['average']=round($item['sumTime']/$item['num']);
|
...
|
...
|
|