From c6a33ee7ab133b3bcf5f377456b473c7bd4b9a77 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 22 Oct 2021 19:57:38 +0800
Subject: [PATCH] 1.保安单位,保安人员现场检查字段修改,接口修改 2.成绩查询接口修改 3.保安员资格审查接口修改

---
 src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
index 3478a6c..d1ff6bd 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -410,7 +410,11 @@
         blade_dept
         where is_deleted = 0
         and
-        (id = 1413470343230877697 or id = 1425366663452196865 or id = 1418458374477549569 or id = 1420222768149966850)
+        (id = 1413470343230877697
+        or id = 1425366663452196865
+        or id = 1418458374477549569
+        or id = 1420222768149966850
+        or id = 1426354978959691778)
         )
         union
         (
@@ -435,17 +439,16 @@
         sys_information si
         on
         si.departmentid = dept.id
+        left join
+        sys_jurisdiction sj
+        on
+        sj.id = si.jurisdiction
         WHERE
         1=1
         and si.stats != 4
         AND dept.is_deleted = 0
-        and dept.id !=1420222961377357825
-        and dept.parent_id!=1420222961377357825
-        and dept.parent_id!=1425365577303621633
-        and dept.id != 1425365577303621633
-        and dept.id != 1432625856013971457
-        <if test="param1!=null and param1!='' and param1!='1372091709474910209'">
-            and si.jurisdiction = #{param1}
+        <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1372091709474910209'">
+            and (sj.id = #{jurisdiction} or sj.parent_id = #{jurisdiction})
         </if>
         )
     </select>

--
Gitblit v1.9.3