Compare commits
2 Commits
4a6fd1efad
...
8d7fa2ef1f
| Author | SHA1 | Date |
|---|---|---|
|
|
8d7fa2ef1f | |
|
|
3ce8d984c1 |
|
|
@ -81,7 +81,7 @@ class DeviceController extends Controller
|
|||
$list = $query->select(DB::raw('type, status, count(1) as num '))->get();
|
||||
$resData = [];
|
||||
foreach ($list as $item) {
|
||||
$resData[$item->type][$item->status] = $item->num;
|
||||
$resData[$item->type->value][$item->status->value] = $item->num;
|
||||
}
|
||||
|
||||
//初始化数据;
|
||||
|
|
|
|||
Loading…
Reference in New Issue