查询条件处理

This commit is contained in:
wanyongkang
2020-10-24 18:40:28 +08:00
parent 565a159745
commit 96994d1219

View File

@@ -35,7 +35,7 @@ class Sql
$this->filter .= ' WHERE '; $this->filter .= ' WHERE ';
} }
if (is_string($where)) { if (is_string($where)) {
$this->filter .= ' WHERE ' . $where; $this->filter .= $where;
} else { } else {
$flag = true; $flag = true;
foreach ($where as $key => $value) { foreach ($where as $key => $value) {