From f2032d8331cd8939bb8dd4ef372033a2dcdbc850 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Thu, 17 Feb 2022 16:10:55 +0800
Subject: [PATCH] +添加法人变更,以及跨区域备案字段更改
---
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