This commit is contained in:
2023-04-25 22:11:40 +08:00
parent def1e1e9c1
commit 5e4beed63c
+2 -2
View File
@@ -639,7 +639,7 @@ trait QueryTrait
$value = [-1];
}
$this->bindParam(':in' . $columns, implode(',', $value));
$this->where[] = $columns . ' IN :in' . $columns;
$this->where[] = $columns . ' IN (:in' . $columns . ')';
return $this;
}
@@ -681,7 +681,7 @@ trait QueryTrait
$value = [-1];
}
$this->bindParam(':notin' . $columns, implode(',', $value));
$this->where[] = $columns . ' NOT IN :notin' . $columns;
$this->where[] = $columns . ' NOT IN (:notin' . $columns . ')';
return $this;
}