fix(项目管理): 修复用例管理下拉框人员为当前项目的所有人员
This commit is contained in:
parent
c8e70124db
commit
a39739e373
|
@ -49,7 +49,7 @@ public interface ExtProjectUserRoleMapper {
|
|||
List<User> getProjectUserList(@Param("sourceId") String sourceId);
|
||||
|
||||
/**
|
||||
* 根据关键字获取下拉框用户数据
|
||||
* 根据关键字获取下拉框当前项目的用户数据
|
||||
* @param projectId 项目ID
|
||||
* @param keyword 远程搜索时的关键字 (name)
|
||||
* @return List<User>
|
||||
|
|
|
@ -53,9 +53,8 @@
|
|||
select u.id,
|
||||
u.name
|
||||
from `user` u
|
||||
left join user_role_relation urr on urr.user_id = u.id
|
||||
where urr.role_id = 'project_member'
|
||||
and urr.source_id = #{projectId}
|
||||
left join user_role_relation urr on urr.user_id = u.id
|
||||
where urr.source_id = #{projectId}
|
||||
<if test="keyword != null and keyword != ''">
|
||||
and u.name LIKE CONCAT('%', #{keyword}, '%')
|
||||
</if>
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
<if test="keyword != null and keyword != ''">
|
||||
AND (name LIKE concat('%', #{keyword}, '%') OR email LIKE concat('%', #{keyword}, '%'))
|
||||
</if>
|
||||
and u.deleted = false
|
||||
GROUP BY urr.user_id
|
||||
limit 100
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue