...
|
...
|
@@ -32,8 +32,9 @@ class AdminAllStatisticsController extends AdminBaseController{ |
|
|
public function index(){
|
|
|
$Order=new OrderModel();
|
|
|
$data=$Order->alias('a')
|
|
|
->field('a.*,b.serial_number,b.hospital,count(a.eq_name) as num,sum(a.time) as sumTime')
|
|
|
->join('equipment b','a.eq_name=b.name')
|
|
|
->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')
|
|
|
->order('start_time','desc')
|
|
|
->paginate(10)->each(function ($item){
|
...
|
...
|
|