新增租户字段

This commit is contained in:
阿沐 2023-06-16 11:06:32 +08:00
parent 4defbb8935
commit 5bba8cbd66
10 changed files with 98 additions and 58 deletions

View File

@ -34,5 +34,9 @@ public class SysAttachmentEntity extends BaseEntity {
* 存储平台
*/
private String platform;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -39,4 +39,8 @@ public class SysDictDataEntity extends BaseEntity {
* 排序
*/
private Integer sort;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -39,4 +39,8 @@ public class SysDictTypeEntity extends BaseEntity {
* 动态sql
*/
private String dictSql;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -59,4 +59,9 @@ public class SysLogLoginEntity {
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -100,4 +100,9 @@ public class SysLogOperateEntity {
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -13,24 +13,28 @@ import net.maku.framework.mybatis.entity.BaseEntity;
* <a href="https://maku.net">MAKU</a>
*/
@Data
@EqualsAndHashCode(callSuper=false)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_org")
public class SysOrgEntity extends BaseEntity {
/**
* 上级ID
*/
private Long pid;
/**
* 机构名称
*/
private String name;
/**
* 排序
*/
private Integer sort;
/**
* 上级名称
*/
@TableField(exist = false)
private String parentName;
/**
* 上级ID
*/
private Long pid;
/**
* 机构名称
*/
private String name;
/**
* 排序
*/
private Integer sort;
/**
* 上级名称
*/
@TableField(exist = false)
private String parentName;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -41,5 +41,8 @@ public class SysParamsEntity extends BaseEntity {
*/
private String remark;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -12,24 +12,27 @@ import net.maku.framework.mybatis.entity.BaseEntity;
* <a href="https://maku.net">MAKU</a>
*/
@Data
@EqualsAndHashCode(callSuper=false)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_post")
public class SysPostEntity extends BaseEntity {
/**
* 岗位编码
*/
private String postCode;
/**
* 岗位名称
*/
private String postName;
/**
* 排序
*/
private Integer sort;
/**
* 状态 0停用 1正常
*/
private Integer status;
/**
* 岗位编码
*/
private String postCode;
/**
* 岗位名称
*/
private String postName;
/**
* 排序
*/
private Integer sort;
/**
* 状态 0停用 1正常
*/
private Integer status;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -15,24 +15,28 @@ import net.maku.system.enums.DataScopeEnum;
* <a href="https://maku.net">MAKU</a>
*/
@Data
@EqualsAndHashCode(callSuper=false)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
public class SysRoleEntity extends BaseEntity {
/**
* 角色名称
*/
private String name;
/**
* 备注
*/
private String remark;
/**
* 数据范围 {@link DataScopeEnum}
*/
private Integer dataScope;
/**
* 机构ID
*/
@TableField(fill = FieldFill.INSERT)
private Long orgId;
/**
* 角色名称
*/
private String name;
/**
* 备注
*/
private String remark;
/**
* 数据范围 {@link DataScopeEnum}
*/
private Integer dataScope;
/**
* 机构ID
*/
@TableField(fill = FieldFill.INSERT)
private Long orgId;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -60,6 +60,10 @@ public class SysUserEntity extends BaseEntity {
/**
* 机构名称
*/
@TableField(exist=false)
@TableField(exist = false)
private String orgName;
/**
* 租户ID
*/
private Long tenantId;
}