From 35be7e24498a3e1b143a213643a5d8d86bdc4e13 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Thu, 30 Oct 2025 19:40:22 +0800
Subject: [PATCH] fix: 报名年龄调整
---
src/main/java/org/springblade/modules/equipage/mapper/GunMapper.xml | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/equipage/mapper/GunMapper.xml b/src/main/java/org/springblade/modules/equipage/mapper/GunMapper.xml
index 4d1c16d..13363c9 100644
--- a/src/main/java/org/springblade/modules/equipage/mapper/GunMapper.xml
+++ b/src/main/java/org/springblade/modules/equipage/mapper/GunMapper.xml
@@ -12,11 +12,25 @@
blade_dept bt
ON
sg.dept_id = bt.id
+ left join
+ sys_information si
+ on
+ si.departmentid = bt.id
+ left join
+ sys_jurisdiction sj
+ on
+ sj.id = si.jurisdiction
WHERE
1=1
+ <if test="gun.jurisdiction!=null and gun.jurisdiction!='' and gun.jurisdiction!='1372091709474910209'">
+ and (sj.id = #{gun.jurisdiction} or sj.parent_id = #{gun.jurisdiction})
+ </if>
<if test="gun.tenantName!=null and gun.tenantName!=''">
and bt.dept_name like concat('%', #{gun.tenantName},'%')
</if>
+ <if test="gun.deptId!=null and gun.deptId!=''">
+ and sg.dept_id = #{gun.deptId}
+ </if>
<if test="gun.gunCardNumber!=null and gun.gunCardNumber!=''">
and sg.gun_card_number like concat('%', #{gun.gunCardNumber},'%')
</if>
--
Gitblit v1.9.3