改进 Active Scope
This commit is contained in:
parent
bcc49864af
commit
7bedade876
@ -121,7 +121,7 @@ public function workOrders(): HasManyAlias
|
|||||||
|
|
||||||
public function scopeActive($query)
|
public function scopeActive($query)
|
||||||
{
|
{
|
||||||
return $query->whereIn('status', ['running', 'stopped'])->where('price', '!=', 0)->where('managed_price', '!=', 0);
|
return $query->whereIn('status', ['running', 'stopped'])->where('price', '!=', 0)->where('managed_price', '!=', 0)->whereNotNull('managed_price');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeThisUser($query, $module = null)
|
public function scopeThisUser($query, $module = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user