fix(项目管理): 用户组添加的成员支持手机号搜索

--bug=1034870 --user=宋昌昌 【项目管理】-用户组成员列表搜索,使用邮箱搜索结果错误 https://www.tapd.cn/55049933/s/1456716
This commit is contained in:
song-cc-rock 2024-01-31 11:23:13 +08:00
parent c75aa0bb13
commit b9d5839572
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,9 @@
and urr.role_id = #{request.userRoleId} and urr.role_id = #{request.userRoleId}
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and ( and (
u.name like concat('%', #{request.keyword}, '%') or u.email like concat('%', #{request.keyword}, '%') u.name like concat('%', #{request.keyword}, '%')
or u.email like concat('%', #{request.keyword}, '%')
or u.phone like concat('%', #{request.keyword}, '%')
) )
</if> </if>
</select> </select>

View File

@ -20,7 +20,9 @@
and urr.role_id = #{request.userRoleId} and urr.role_id = #{request.userRoleId}
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and ( and (
u.name like concat('%', #{request.keyword}, '%') or u.email like concat('%', #{request.keyword}, '%') u.name like concat('%', #{request.keyword}, '%')
or u.email like concat('%', #{request.keyword}, '%')
or u.phone like concat('%', #{request.keyword}, '%')
) )
</if> </if>
</select> </select>