From 7a201eec2a4284743386cc0c2d03eefa9e7cd1d7 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 24 七月 2026 16:00:44 +0800
Subject: [PATCH] update

---
 ruoyi-system/src/main/resources/mapper/system/SysVisitAreaMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysVisitAreaMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysVisitAreaMapper.xml
index 0ff1cf3..8931ba5 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysVisitAreaMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysVisitAreaMapper.xml
@@ -147,6 +147,16 @@
           and find_in_set(#{areaId}, ancestors)
     </update>
 
+    <select id="countChildrenByParentIds" resultType="int">
+        select count(1)
+        from t_visit_area
+        where del_flag = '0'
+          and parent_id in
+          <foreach collection="parentIds" item="parentId" open="(" separator="," close=")">
+              #{parentId}
+          </foreach>
+    </select>
+
     <update id="deleteByIds">
         update t_visit_area
         set del_flag = '1',

--
Gitblit v1.7.1