From e94f51f053230d0323a380ae73041d3af95d3c2c Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 20 Oct 2025 05:50:43 +0000 Subject: [PATCH] * [bug#66208,done,0.2h] fix bug. --- lib/base/dao/dao.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 566f29a753..6931bce7a8 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -2825,6 +2825,8 @@ class baseSQL */ public function notin($ids) { + if($this->inCondition and !$this->conditionIsTrue) return $this; + if((is_string($ids) && $ids === '') || (is_array($ids) && empty($ids))) { $pattern = '/\s+(?:`([^`]+)`|"([^"]+)"|(\w+))\s*$/i'; @@ -2834,8 +2836,6 @@ class baseSQL return $this; } - if($this->inCondition and !$this->conditionIsTrue) return $this; - $dbIN = helper::dbIN($ids); if(strpos($dbIN, '=') === 0) $this->sql .= ' !' . $dbIN; else $this->sql .= ' NOT ' . helper::dbIN($ids);