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/UserServiceDaoImplMapper.xml |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
index 16360f6..70acccb 100644
--- a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -540,12 +540,21 @@
         <if test="openId != null and openId !=''">
             ,u_user_attr ua
         </if>
+        <if test="key != null and key !=''">
+            ,u_user_attr ub
+        </if>
         where 1= 1
         <if test="openId != null and openId != ''">
             and u.user_id = ua.user_id
             and ua.spec_cd = '100201911001'
             and ua.value = #{openId}
             and ua.status_cd = '0'
+        </if>
+        <if test="key != null and key != ''">
+            and u.user_id = ub.user_id
+            and ub.spec_cd = '100202061602'
+            and ub.value = #{key}
+            and ub.status_cd = '0'
         </if>
         <if test="bId != null and bId !=''">
             and u.b_id = #{bId}
@@ -562,6 +571,31 @@
                 #{item}
             </foreach>
         </if>
+
+        <if test="name !=null and name != ''">
+            and u.name= #{name}
+        </if>
+        <if test="userName !=null and userName != ''">
+            and u.name= #{userName}
+        </if>
+        <if test="email !=null and email != ''">
+            and u.email= #{email}
+        </if>
+        <if test="password !=null and password != ''">
+            and u.password= #{password}
+        </if>
+        <if test="locationCd !=null and locationCd != ''">
+            and u.location_cd= #{locationCd}
+        </if>
+        <if test="age !=null and age != ''">
+            and u.age= #{age}
+        </if>
+        <if test="sex !=null and sex != ''">
+            and u.sex= #{sex}
+        </if>
+        <if test="tel !=null and tel != ''">
+            and u.tel= #{tel}
+        </if>
         order by u.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}

--
Gitblit v1.8.0