src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml
@@ -114,6 +114,24 @@ WHERE dept.is_deleted = 0 </select> <select id="jurisdictionLazyTree" resultType="org.springblade.modules.system.node.TreeNode"> SELECT sj.id, sj.parent_id as parentId, sj.dept_name AS name, ( SELECT CASE WHEN count(1) > 0 THEN 1 ELSE 0 END FROM sys_jurisdiction WHERE parent_id = sj.id and is_deleted = 0 ) AS "has_children" FROM sys_jurisdiction sj WHERE sj.is_deleted = 0 </select> <select id="selJur" resultType="java.lang.String"> SELECT id FROM sys_jurisdiction WHERE dept_name=#{deptname}