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/dispatcher/mapper/DispatcherUnitMapper.xml | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml b/src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
index dc7a03e..b66dee0 100644
--- a/src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
+++ b/src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
@@ -16,8 +16,16 @@
sys_jurisdiction sj
on
sj.id = sdu.jurisdiction
+ LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and bdb.is_deleted = 0
WHERE
1=1
+ and bdb.code = 'dispatchProfession'
+ <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''">
+ and sdu.profession in
+ <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </if>
<if test="dispatcherUnit.deptName!=null and dispatcherUnit.deptName!=''">
and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%')
</if>
@@ -80,7 +88,7 @@
<select id="getAll" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO">
select
- sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName
+ sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName,bdb.dict_value as professionName
from
sys_dispatcher_unit sdu
LEFT JOIN
@@ -91,8 +99,16 @@
sys_jurisdiction sj
on
sj.id = sdu.jurisdiction
+ LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and bdb.is_deleted = 0
WHERE
1=1
+ and bdb.code = 'dispatchProfession'
+ <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''">
+ and sdu.profession in
+ <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </if>
<if test="dispatcherUnit.deptName!=null and dispatcherUnit.deptName!=''">
and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%')
</if>
--
Gitblit v1.9.3