This commit is contained in:
2023-04-07 18:56:17 +08:00
parent b2807ffe6f
commit 2153481f69
+2 -2
View File
@@ -682,7 +682,7 @@ trait QueryTrait
if (count($value) < 1) {
$value = [-1];
}
$this->bindParam(':in' . $columns, $value);
$this->bindParam(':in' . $columns, implode(',', $value));
$this->where[] = $columns . ' IN :in' . $columns;
return $this;
}
@@ -724,7 +724,7 @@ trait QueryTrait
if (count($value) < 1) {
$value = [-1];
}
$this->bindParam(':notin' . $columns, $value);
$this->bindParam(':notin' . $columns, implode(',', $value));
$this->where[] = $columns . ' NOT IN :notin' . $columns;
return $this;
}