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

order

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