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

interface

@@ -32,7 +32,7 @@ class AdminAllStatisticsController extends AdminBaseController{ @@ -32,7 +32,7 @@ class AdminAllStatisticsController extends AdminBaseController{
32 public function index(){ 32 public function index(){
33 $Order=new OrderModel(); 33 $Order=new OrderModel();
34 $data=$Order->alias('a') 34 $data=$Order->alias('a')
35 - ->field('a.*,count(a.eq_name) as num,sum(a.time) as sumTime') 35 + ->field('a.*,count(a.users_id) as num,sum(a.time) as sumTime')
36 // ->join('equipment b','a.eq_name=b.name') 36 // ->join('equipment b','a.eq_name=b.name')
37 ->join('users c','a.users_id=c.id') 37 ->join('users c','a.users_id=c.id')
38 ->group('a.users_id') 38 ->group('a.users_id')