From 436d92108f5e02a00516491d8c10147895265d1a Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 13 十一月 2020 12:36:31 +0800
Subject: [PATCH] 优化拼团名称

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

diff --git a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
index 40aae0b..70acccb 100644
--- a/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -551,7 +551,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'
@@ -571,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