From 82eb6782bd9264798bea70220d4199d559759dcb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期六, 24 十月 2020 17:52:53 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml
index 0798880..28970b0 100644
--- a/java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OrgServiceDaoImplMapper.xml
@@ -113,7 +113,7 @@
and t.parent_org_id = uo.org_id
and uo.status_cd = '0'
<if test="staffId != null and staffId !=''">
- and uosr.org_id = uo.org_id
+ and uosr.org_id = t.org_id
and uosr.staff_id = #{staffId}
and uosr.status_cd = '0'
</if>
@@ -205,7 +205,7 @@
and t.parent_org_id = uo.org_id
and uo.status_cd = '0'
<if test="staffId != null and staffId !=''">
- and uosr.org_id = uo.org_id
+ and uosr.org_id = t.org_id
and uosr.staff_id = #{staffId}
and uosr.status_cd = '0'
</if>
--
Gitblit v1.8.0