This commit is contained in:
2023-04-25 22:48:45 +08:00
parent 5e4beed63c
commit 8529a8eb0d
+2 -4
View File
@@ -638,8 +638,7 @@ trait QueryTrait
if (count($value) < 1) { if (count($value) < 1) {
$value = [-1]; $value = [-1];
} }
$this->bindParam(':in' . $columns, implode(',', $value)); $this->where[] = $columns . ' IN (' . implode(',', $value) . ')';
$this->where[] = $columns . ' IN (:in' . $columns . ')';
return $this; return $this;
} }
@@ -680,8 +679,7 @@ trait QueryTrait
if (count($value) < 1) { if (count($value) < 1) {
$value = [-1]; $value = [-1];
} }
$this->bindParam(':notin' . $columns, implode(',', $value)); $this->where[] = $columns . ' NOT IN (' . implode(',', $value) . ')';
$this->where[] = $columns . ' NOT IN (:notin' . $columns . ')';
return $this; return $this;
} }