成员管理 0.999
This commit is contained in:
parent
825d213221
commit
d085c2a27d
|
@ -30,6 +30,9 @@
|
||||||
<select id="getMemberList" resultType="io.metersphere.base.domain.User">
|
<select id="getMemberList" resultType="io.metersphere.base.domain.User">
|
||||||
SELECT `user`.* FROM user_role JOIN `user` ON user_role.user_id = `user`.id
|
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}
|
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>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
|
@ -3,9 +3,26 @@ package io.metersphere.controller.request.member;
|
||||||
import io.metersphere.commons.constants.RoleConstants;
|
import io.metersphere.commons.constants.RoleConstants;
|
||||||
|
|
||||||
public class QueryMemberRequest {
|
public class QueryMemberRequest {
|
||||||
|
private String name;
|
||||||
private String workspaceId;
|
private String workspaceId;
|
||||||
private String roleId = RoleConstants.TEST_MANAGER;
|
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() {
|
public String getWorkspaceId() {
|
||||||
return workspaceId;
|
return workspaceId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<ms-create-box :tips="btnTips" :exec="create"/>
|
<ms-create-box :tips="btnTips" :exec="create"/>
|
||||||
</span>
|
</span>
|
||||||
<span class="search">
|
<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/>
|
maxlength="60" v-model="condition" @change="search" clearable/>
|
||||||
</span>
|
</span>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
Loading…
Reference in New Issue