新增:userRole新增roleCode字段

This commit is contained in:
2025-06-18 15:39:04 +08:00
parent 779c4cbaf3
commit eaddddafe3
2 changed files with 6 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ public class UserRole implements Serializable {
@TableField(exist = false)
private String roleName;
@ApiModelProperty("角色标识")
@TableField(exist = false)
private String roleCode;
@ApiModelProperty("租户ID")
private Integer tenantId;

View File

@@ -32,8 +32,9 @@
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
SELECT a.*, b.role_name, b.role_code
FROM sys_user_role a
LEFT JOIN sys_role b ON a.role_id = b.role_id
<where>
<if test="param.id != null">
AND a.id = #{param.id}