A库筛选保险日期调试

webUi^2
zhaocheng 5 years ago
parent 0ebba637ec
commit 31e044f955
  1. 2
      frontend/controllers/DatabaseController.php

@ -260,11 +260,13 @@ class DatabaseController extends BaseController
$total = $query->count(); $total = $query->count();
$query->orderBy('id desc'); $query->orderBy('id desc');
$sql = $query->createCommand()->rawSql;
$query = $query->offset($offset)->limit($limit); $query = $query->offset($offset)->limit($limit);
$items = $query->all(); $items = $query->all();
$data = []; $data = [];
$data['total'] = $total; $data['total'] = $total;
$data['sql'] = $sql;
$data['rows'] = []; $data['rows'] = [];
foreach($items as $item) { foreach($items as $item) {
$row = $item->toArray(); $row = $item->toArray();

Loading…
Cancel
Save