This commit is contained in:
chenbo 2024-01-09 11:04:19 +08:00
parent 0466e710a7
commit d1a3dc08f7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {