This commit is contained in:
chenbo 2023-12-18 09:57:36 +08:00
parent c6544e071c
commit ce197778d1
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class LandController extends BaseApiController
->join('product_device pd', 'lp.product_id=pd.product_id') ->join('product_device pd', 'lp.product_id=pd.product_id')
->join('device d', 'pd.device_id=d.id') ->join('device d', 'pd.device_id=d.id')
->where('l.id', $landId) ->where('l.id', $landId)
>where('d.is_online', 2)->count(); ->where('d.is_online', 2)->count();
return $this->success('成功', compact('total', 'online', 'offline')); return $this->success('成功', compact('total', 'online', 'offline'));