瀏覽代碼

修改SQL拼接的bug

王苗苗 7 月之前
父節點
當前提交
51f82a12ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      slibra-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 1 - 1
slibra-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -126,7 +126,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
 	    <include refid="selectUserVo"/>
 		<!-- where u.user_name = #{userName} and u.del_flag = '0' -->
-		where (concat(u.user_name, '-', u.type) = #{userName}  and u.del_flag = '0'
+		where concat(u.user_name, '-', u.type) = #{userName}  and u.del_flag = '0'
 	</select>
 
 	<select id="selectUserByPhonenumber" parameterType="String" resultMap="SysUserResult">