From e9f1859afabb675e7bf4263b301ea468c9ce8688 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 09 十二月 2018 11:53:47 +0800
Subject: [PATCH] 修复updateUserInfoInstance sql bug 问题
---
java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml b/java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
index a65b05e..effbe90 100644
--- a/java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
+++ b/java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -173,31 +173,31 @@
<update id="updateUserInfoInstance" parameterType="map">
update u_user u set u.status_cd = #{statusCd}
<if test="newBId != null and newBId != ''">
- ,s.b_id = #{newBId}
+ ,u.b_id = #{newBId}
</if>
<if test="name !=null and name != ''">
- ,s.name= #{name}
+ ,u.name= #{name}
</if>
<if test="email !=null and email != ''">
- ,s.email= #{email}
+ ,u.email= #{email}
</if>
<if test="address !=null and address != ''">
- ,s.address= #{address}
+ ,u.address= #{address}
</if>
<if test="password !=null and password != ''">
- ,s.password= #{password}
+ ,u.password= #{password}
</if>
<if test="locationCd !=null and locationCd != ''">
- ,s.location_cd= #{locationCd}
+ ,u.location_cd= #{locationCd}
</if>
<if test="age !=null and age != ''">
- ,s.age= #{age}
+ ,u.age= #{age}
</if>
<if test="sex !=null and sex != ''">
- ,s.sex= #{sex}
+ ,u.sex= #{sex}
</if>
<if test="tel !=null and tel != ''">
- ,s.tel= #{tel}
+ ,u.tel= #{tel}
</if>
where 1 = 1
<if test="bId != null and bId != ''">
@@ -268,7 +268,7 @@
<if test="userId != null and userId != ''">
and u.user_id = #{userId}
</if>
- <if test="statusCd !=null statusCd != ''">
+ <if test="statusCd !=null and statusCd != ''">
and u.status_cd = #{statusCd}
</if>
</select>
--
Gitblit v1.8.0