fixes
This commit is contained in:
parent
2474758907
commit
d751c4cfe7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue