From 2b4a15ed498dbed8cc666741ab5a59afbec89511 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 20 Aug 2016 21:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BonlyTrashed=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/traits/model/SoftDelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/traits/model/SoftDelete.php b/library/traits/model/SoftDelete.php index 3709b6cc..8e36aa43 100644 --- a/library/traits/model/SoftDelete.php +++ b/library/traits/model/SoftDelete.php @@ -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'); } /**