fix(系统设置): 组织成员搜索支持邮箱手机号

--bug=1034787 --user=宋昌昌 【系统设置】系统-组织与项目-组织-成员-搜索功能-未支持邮箱与手机号搜索 https://www.tapd.cn/55049933/s/1462456
This commit is contained in:
song-cc-rock 2024-02-19 17:57:22 +08:00 committed by 刘瑞斌
parent 95d54812cd
commit efddde8138
2 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,9 @@
and urr.source_id = #{request.organizationId} and urr.source_id = #{request.organizationId}
</if> </if>
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and u.name like concat('%', #{request.keyword},'%') and (u.name like CONCAT('%', #{request.keyword},'%')
or u.email like CONCAT('%', #{request.keyword},'%')
or u.phone like CONCAT('%', #{request.keyword},'%'))
</if> </if>
</where> </where>
order by urr.create_time desc order by urr.create_time desc

View File

@ -545,4 +545,4 @@ public class SystemOrganizationControllerTests extends BaseTest {
.andExpect(status().isOk()) .andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON)).andReturn(); .andExpect(content().contentType(MediaType.APPLICATION_JSON)).andReturn();
} }
} }