正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -30,9 +30,9 @@ class AdminAllStatisticsController extends AdminBaseController{ | @@ -30,9 +30,9 @@ class AdminAllStatisticsController extends AdminBaseController{ | ||
30 | public function index(){ | 30 | public function index(){ |
31 | $Order=new OrderModel(); | 31 | $Order=new OrderModel(); |
32 | $data=$Order->alias('a') | 32 | $data=$Order->alias('a') |
33 | - ->field('a.*,b.serial_number,b.hospital,count(mac_address),sum(a.time) as sumTime,sum(*) as num') | 33 | + ->field('a.*,b.serial_number,b.hospital,count(a.mac_address),sum(a.time) as sumTime,sum(*) as num') |
34 | ->join('equipment b','a.mac_address=b.mac_address') | 34 | ->join('equipment b','a.mac_address=b.mac_address') |
35 | - ->group('mac_address') | 35 | + ->group('a.mac_address') |
36 | ->order('start_time','desc') | 36 | ->order('start_time','desc') |
37 | ->paginate(10); | 37 | ->paginate(10); |
38 | $this->assign('data',$data); | 38 | $this->assign('data',$data); |
-
请 注册 或 登录 后发表评论