From 32705494e444067df0e1380611cd07199d81c79a Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 23 Jul 2021 09:11:00 +0800
Subject: [PATCH] 派遣记录新增接口修改,设置辖区字段

---
 src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml |    2 ++
 1 files changed, 2 insertions(+), 0 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 f95e892..6c39e98 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -151,6 +151,7 @@
                         dept.is_deleted = 0
                     <if test="parentId!=null and parentId!=''">
                         and dept_category=1
+                        AND dept.id = #{parentId}
                     </if>
             )
 
@@ -171,6 +172,7 @@
                 where 1=1
                 <if test="parentId!=null and parentId!=''">
                     and dept_category=1
+                    AND bu.dept_id = #{parentId}
                 </if>
             )
         )c

--
Gitblit v1.9.3