From d1a3dc08f7703d130ad53be19049fc1727e15ee2 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 9 Jan 2024 11:04:19 +0800 Subject: [PATCH] update --- app/api/controller/dataview/LandController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/dataview/LandController.php b/app/api/controller/dataview/LandController.php index 7bf23c0b..532f9d04 100644 --- a/app/api/controller/dataview/LandController.php +++ b/app/api/controller/dataview/LandController.php @@ -148,7 +148,7 @@ class LandController extends BaseApiController // 土地列表 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('device d', 'pd.device_id=d.id') ->where(function ($query) {