From cc9384035ae8b71b33e866e0690b0bc65fa02135 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 03 Jan 2024 09:30:39 +0800
Subject: [PATCH] 根据身份证、保安证编号获取用户;微信注册修改为限定身份证号不能重复

---
 src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml b/src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml
index b52d72d..7b281c8 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml
@@ -48,4 +48,35 @@
         select id, parent_id, dict_value as title, id as "value", id as "key" from blade_dict_biz where is_deleted = 0 and parent_id = 0
     </select>
 
+    <!--getDicTree list-->
+    <select id="getDicTreeList" resultType="org.springblade.modules.system.node.TreeNode">
+         select
+            bdb.id,
+            bdb.dict_value as name,
+            bdb.parent_id parentId,
+            exists(
+                select 1 from blade_dict_biz bdb1
+                where bdb1.parent_id = bdb.id and  bdb1.is_sealed = 0 and bdb1.is_deleted = 0
+            ) as hasChildren
+        from
+            blade_dict_biz bdb
+    </select>
+
+    <!--getDicTree  map-->
+    <select id="getDicTreeMap" resultType="org.springblade.modules.system.node.TreeNode">
+         select
+            bdb.id,
+            bdb.dict_value as name,
+            bdb.parent_id parentId,
+            exists(
+                select 1 from blade_dict_biz bdb1
+                where bdb1.parent_id = bdb.id and  bdb1.is_sealed = 0 and bdb1.is_deleted = 0
+            ) as hasChildren
+        from
+            blade_dict_biz bdb
+        where
+            1=1
+        and bdb.parent_id = 0
+    </select>
+
 </mapper>

--
Gitblit v1.9.3