diff --git a/app/api/controller/dataview/LandController.php b/app/api/controller/dataview/LandController.php index 532f9d04..0770c99e 100644 --- a/app/api/controller/dataview/LandController.php +++ b/app/api/controller/dataview/LandController.php @@ -44,7 +44,7 @@ class LandController extends BaseApiController // 溯源产品统计 public function plantProductCount() { - $list = LandPlant::alias('lp')->join('land l', 'l.id=lp.land_id')->field('lp.kind,lp.qr_code') + $list = LandPlant::alias('lp')->join('land l', 'l.id=lp.land_id')->field('lp.id,lp.kind,lp.qr_code') ->where(function ($query) { if ($this->streetCode != '') { $query->where('l.town_code', $this->streetCode);