...
|
...
|
@@ -30,7 +30,7 @@ class AdminAllStatisticsController extends AdminBaseController{ |
|
|
public function index(){
|
|
|
$Order=new OrderModel();
|
|
|
$data=$Order->alias('a')
|
|
|
->field('a.*,b.serial_number,b.hospital,sum() as sumTime')
|
|
|
->field('a.*,b.serial_number,b.hospital,sum(a.time) as sumTime,sum(*) as num')
|
|
|
->join('equipment b','a.mac_address=b.mac_address')
|
|
|
->group('mac_address')
|
|
|
->order('start_time','desc')
|
...
|
...
|
|