mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
软删除的查询加上表名
This commit is contained in:
@@ -123,7 +123,8 @@ trait SoftDelete
|
||||
protected static function base($query)
|
||||
{
|
||||
if (static::$deleteTime) {
|
||||
$query->where(static::$deleteTime, 'null');
|
||||
$table = $query->getTable();
|
||||
$query->where($table . '.' . static::$deleteTime, 'null');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user