成员管理 0.999

This commit is contained in:
W23123 2020-02-18 17:41:51 +08:00
parent 825d213221
commit d085c2a27d
3 changed files with 21 additions and 1 deletions

View File

@ -30,6 +30,9 @@
<select id="getMemberList" resultType="io.metersphere.base.domain.User">
SELECT `user`.* FROM user_role JOIN `user` ON user_role.user_id = `user`.id
WHERE user_role.source_id = #{member.workspaceId} AND user_role.role_id = #{member.roleId}
<if test="member.name != null">
AND `user`.name like CONCAT('%', #{member.name},'%')
</if>
</select>
</mapper>

View File

@ -3,9 +3,26 @@ package io.metersphere.controller.request.member;
import io.metersphere.commons.constants.RoleConstants;
public class QueryMemberRequest {
private String name;
private String workspaceId;
private String roleId = RoleConstants.TEST_MANAGER;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId;
}
public String getWorkspaceId() {
return workspaceId;
}

View File

@ -7,7 +7,7 @@
<ms-create-box :tips="btnTips" :exec="create"/>
</span>
<span class="search">
<el-input type="text" size="small" placeholder="根据搜索" prefix-icon="el-icon-search"
<el-input type="text" size="small" placeholder="根据用户名搜索" prefix-icon="el-icon-search"
maxlength="60" v-model="condition" @change="search" clearable/>
</span>
</el-row>