From b5baef17219976dffdb791fb0860685ae06bf0a2 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 19 六月 2024 11:49:43 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 inspect-server/src/main/resources/mapper/StandardTreeMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
index e0590ad..f735849 100644
--- a/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
+++ b/inspect-server/src/main/resources/mapper/StandardTreeMapper.xml
@@ -275,5 +275,8 @@
         <if test="itemChild != null and itemChild != ''">
             and inspection_item_subclass = #{itemChild}
         </if>
+        <if test="itemChild == null or itemChild == ''">
+            and (inspection_item_subclass is null or inspection_item_subclass = '')
+        </if>
     </select>
 </mapper>

--
Gitblit v1.9.3