新增 当前用户 user.getRoleList() 支持返回 岗位关联角色数据

This commit is contained in:
thinkgem
2024-11-07 10:19:13 +08:00
parent 380ee54ae5
commit 03c5d4a051

View File

@@ -20,7 +20,7 @@ import com.jeesite.common.mybatis.annotation.Table;
},
joinTable={
@JoinTable(type=JoinTable.Type.LEFT_JOIN, entity=Role.class, alias="r", lazy = true,
on="a.role_code = r.role_code", attrName="role",
on="a.role_code = r.role_code AND r.status = ${STATUS_NORMAL}", attrName="role",
columns={
@Column(name="role_code", attrName="roleCode", label="角色编码", isPK=true),
@Column(name="role_name", attrName="roleName", label="角色名称"),