mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进onlyTrashed方法
This commit is contained in:
@@ -37,7 +37,7 @@ trait SoftDelete
|
||||
public static function onlyTrashed()
|
||||
{
|
||||
$model = new static();
|
||||
return $model->db()->where(static::$deleteTime, '>', 0);
|
||||
return $model->db()->where(static::$deleteTime, 'exp', 'is not null');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user