update
This commit is contained in:
parent
a4e47643bb
commit
3643b2b7d7
|
@ -77,14 +77,14 @@ class DeviceController extends BaseApiController
|
||||||
$query->whereIn('d.id', $deviceIds);
|
$query->whereIn('d.id', $deviceIds);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$deviceList = $query->select()->toArray();
|
||||||
$total = $query->count();
|
$total = $query->count();
|
||||||
|
|
||||||
$online = $query->where('d.is_online', 1)->count();
|
$online = $query->where('d.is_online', 1)->count();
|
||||||
|
|
||||||
$offline = $query->where('d.is_online', 2)->count();
|
$offline = $query->where('d.is_online', 2)->count();
|
||||||
|
|
||||||
$deviceList = $query->select()->toArray();
|
|
||||||
// 请求mqtt
|
// 请求mqtt
|
||||||
[$alarmCount,$todayAlarmCount] = RemoteRequestLogic::getAlarmCount($deviceList);
|
[$alarmCount,$todayAlarmCount] = RemoteRequestLogic::getAlarmCount($deviceList);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue