正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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') |
-
请 注册 或 登录 后发表评论