fixed
This commit is contained in:
parent
c6544e071c
commit
ce197778d1
|
@ -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'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue