🐛 fix 角色绑定用户的查询功能

This commit is contained in:
b2baccline
2021-03-16 19:42:19 +08:00
parent e339103998
commit 67484789e1
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ public class RoleBindUserQO {
private Integer userId;
@ApiModelProperty(value = "用户名")
private Integer username;
private String username;
@ApiModelProperty(value = "组织ID")
private Integer organizationId;

View File

@@ -28,13 +28,13 @@
WHERE ur.role_code = #{qo.roleCode}
and su.deleted = 0
<if test="qo.userId != null">
su.user_id = #{qo.userId}
and su.user_id = #{qo.userId}
</if>
<if test="qo.username != null">
su.qo.username = #{qo.username}
and su.username = #{qo.username}
</if>
<if test="qo.organizationId != null">
so.id = #{organizationId}
and so.id = #{qo.organizationId}
</if>
</select>