From 62eb499b0c969f246d3245d1429a97da4de1ce28 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Mon, 01 Jun 2026 20:46:13 +0800
Subject: [PATCH] feat: 成绩查询增加年龄查询返回
---
src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml b/src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml
index 69f49cf..3606524 100644
--- a/src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml
+++ b/src/main/java/org/springblade/modules/jurisdiction/mapper/JurisdictionMapper.xml
@@ -86,9 +86,11 @@
FROM
sys_jurisdiction dept
WHERE dept.is_deleted = 0
- and dept.parent_id = #{param2}
<if test="param1!=null and param1!=''">
and dept.tenant_id = #{param1}
+ </if>
+ <if test="param2!=null and param2!=''">
+ and dept.parent_id = #{param2}
</if>
</select>
@@ -111,4 +113,30 @@
sys_jurisdiction dept
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}
+ </select>
+ <select id="selectIn" resultType="java.lang.String">
+ SELECT id FROM sys_jurisdiction WHERE dept_name=#{deptname} and is_deleted =0
+ </select>
</mapper>
--
Gitblit v1.9.3