From 3a583be2297a3cc98edae23577ce985a332dfc36 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 18 三月 2021 13:25:03 +0800
Subject: [PATCH] 加入 停车场属性
---
java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml
index 663e513..d7e8073 100644
--- a/java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml
@@ -77,17 +77,18 @@
<select id="getOrgStaffRelInfo" parameterType="Map" resultType="Map">
select t.rel_id,t.rel_id relId,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.b_id,t.b_id
bId,t.org_id,t.org_id orgId,t.staff_id,t.staff_id staffId,t.rel_cd,t.rel_cd relCd,uo.parent_org_id parentOrgId,
- uu.name staffName
+ uu.name staffName,uo.org_name departmentName,uo.org_id departmentId
from u_org_staff_rel t,u_org uo,u_user uu
where t.org_id = uo.org_id
- and t.staff_id = uu.staff_id
- and uu.status_cd = '0'
- and uo.status_cd = '0'
+ and t.staff_id = uu.user_id
+
+ <if test='statusCd ==null or statusCd != "1"'>
+ and uu.status_cd = '0'
+ and uo.status_cd = '0'
+ and t.status_cd= '0'
+ </if>
<if test="relId !=null and relId != ''">
and t.rel_id= #{relId}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
</if>
<if test="storeId !=null and storeId != ''">
and t.store_id= #{storeId}
--
Gitblit v1.8.0