This commit is contained in:
zmj 2024-03-06 18:57:11 +08:00
parent 2474758907
commit d751c4cfe7
1 changed files with 1 additions and 1 deletions

View File

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