This commit is contained in:
thinkphp
2017-08-24 22:33:51 +08:00

View File

@@ -2601,7 +2601,7 @@ class Query
$resultSet = $this->options($options)
->limit($count)
->bind($bind)
->where($column, 'asc' == $order ? '>' : '<', $lastId)
->where($column, 'asc' == strtolower($order) ? '>' : '<', $lastId)
->order($column, $order)
->select();
if ($resultSet instanceof Collection) {