From 9c0afd1db117e1bbc06f403f92dde9919fff9532 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期五, 18 六月 2021 16:33:02 +0800
Subject: [PATCH] 增加开户行功能

---
 java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 3bc17a7..2b96975
--- a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -458,6 +458,9 @@
         <if test="parentOrgId !=null and parentOrgId != ''">
             and uo.parent_org_id = #{parentOrgId}
         </if>
+        <if test="departmentOrgId !=null and departmentOrgId != ''">
+            and uosr.org_id = #{departmentOrgId}
+        </if>
         and a.status_cd = '0'
         and uo.status_cd = '0'
         and uosr.status_cd = '0'
@@ -486,8 +489,8 @@
     <select id="getStaffs" parameterType="Map" resultType="Map">
         select uo.org_id orgId,uo.org_name,uo.org_name orgName,u.user_id, u.user_id userId,u.name,u.name
         userName,u.email,u.address,u.location_cd,u.location_cd locationCd,
-        u.age,u.sex,u.tel,u.level_cd,u.b_id,puo.org_id parentOrgId,puo.org_name parentOrgName,puo.belong_community_id belongCommunityId,
-        uosr.store_id storeId
+        u.age,u.sex,u.tel,u.level_cd levelCd,u.b_id,puo.org_id parentOrgId,puo.org_name parentOrgName,puo.belong_community_id belongCommunityId,
+        uosr.store_id storeId,uosr.rel_cd relCd
         from
         u_user u
         ,u_org uo
@@ -502,6 +505,9 @@
         and uo.parent_org_id = puo.org_id
         <if test="parentOrgId !=null and parentOrgId != ''">
             and uo.parent_org_id = #{parentOrgId}
+        </if>
+        <if test="departmentOrgId !=null and departmentOrgId != ''">
+            and uosr.org_id = #{departmentOrgId}
         </if>
         and u.status_cd = '0'
         and uo.status_cd = '0'
@@ -535,7 +541,7 @@
     <select id="getUsers" parameterType="Map" resultType="Map">
         select u.user_id, u.user_id userId,u.name,u.name
         userName,u.email,u.address,u.password,u.location_cd,u.location_cd locationCd,
-        u.age,u.sex,u.tel,u.level_cd,u.b_id
+        u.age,u.sex,u.tel,u.level_cd,u.b_id,u.level_cd levelCd
         from u_user u
         <if test="openId != null and openId !=''">
             ,u_user_attr ua
@@ -551,7 +557,7 @@
             and ua.status_cd = '0'
         </if>
         <if test="key != null and key != ''">
-            and u.user_id = ua.user_id
+            and u.user_id = ub.user_id
             and ub.spec_cd = '100202061602'
             and ub.value = #{key}
             and ub.status_cd = '0'
@@ -596,6 +602,9 @@
         <if test="tel !=null and tel != ''">
             and u.tel= #{tel}
         </if>
+        <if test="levelCd !=null and levelCd != ''">
+            and u.level_cd= #{levelCd}
+        </if>
         order by u.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}

--
Gitblit v1.8.0