...
|
...
|
@@ -32,7 +32,7 @@ class AdminAllStatisticsController extends AdminBaseController{ |
|
|
public function index(){
|
|
|
$Order=new OrderModel();
|
|
|
$data=$Order->alias('a')
|
|
|
->field('a.*,count(a.eq_name) as num,sum(a.time) as sumTime')
|
|
|
->field('a.*,count(a.users_id) 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.users_id')
|
...
|
...
|
|