Compare commits
No commits in common. "8d7fa2ef1f23d5f1da641aeefb1f173c73c8dfcd" and "4a6fd1efadb5ada539b7cf34967a9c7bce2508d8" have entirely different histories.
8d7fa2ef1f
...
4a6fd1efad
|
|
@ -81,7 +81,7 @@ class DeviceController extends Controller
|
||||||
$list = $query->select(DB::raw('type, status, count(1) as num '))->get();
|
$list = $query->select(DB::raw('type, status, count(1) as num '))->get();
|
||||||
$resData = [];
|
$resData = [];
|
||||||
foreach ($list as $item) {
|
foreach ($list as $item) {
|
||||||
$resData[$item->type->value][$item->status->value] = $item->num;
|
$resData[$item->type][$item->status] = $item->num;
|
||||||
}
|
}
|
||||||
|
|
||||||
//初始化数据;
|
//初始化数据;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue