update
This commit is contained in:
parent
0466e710a7
commit
d1a3dc08f7
|
@ -148,7 +148,7 @@ class LandController extends BaseApiController
|
||||||
// 土地列表
|
// 土地列表
|
||||||
public function landList()
|
public function landList()
|
||||||
{
|
{
|
||||||
$list = Land::alias('l')->field('l.*,d.video_url')->join('land_product lp', 'lp.land_id=l.id')
|
$list = Land::alias('l')->field('l.*,d.video_url,d.id as device_id')->join('land_product lp', 'lp.land_id=l.id')
|
||||||
->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(function ($query) {
|
->where(function ($query) {
|
||||||
|
|
Loading…
Reference in New Issue