Forráskód Böngészése

fix 修改用户接口

Administrator 3 éve
szülő
commit
fa1268dd80

+ 6 - 6
boman-modules/boman-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -85,24 +85,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	
 	<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
 	    <include refid="selectUserVo"/>
-		where u.user_name = #{userName}
+		where u.user_name = #{userName}  and u.del_flag = '0'
 	</select>
 	
 	<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
 		<include refid="selectUserVo"/>
-		where u.id = #{id}
+		where u.id = #{id}  and u.del_flag = '0'
 	</select>
 	
 	<select id="checkUserNameUnique" parameterType="String" resultType="int">
-		select count(1) from sys_user where user_name = #{userName} limit 1
+		select count(1) from sys_user where user_name = #{userName} and del_flag = '0' limit 1
 	</select>
 	
 	<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
-		select id, phonenumber from sys_user where phonenumber = #{phonenumber} limit 1
+		select id, phonenumber from sys_user where phonenumber = #{phonenumber} and del_flag = '0' limit 1
 	</select>
 	
 	<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
-		select id, email from sys_user where email = #{email} limit 1
+		select id, email from sys_user where email = #{email} and del_flag = '0' limit 1
 	</select>
 	
 	<insert id="insertUser" parameterType="com.boman.domain.SysUser" useGeneratedKeys="true" keyProperty="id">
@@ -201,7 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 	<select id="getByPhone" resultMap="SysUserResult">
 		<include refid="selectUserVo"/>
-		 where phonenumber = #{phone} limit 1;
+		 where u.phonenumber = #{phone}  and u.del_flag = '0' and u.status = '0' limit 1;
 	</select>
 	
 </mapper>