新增租户字段

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,7 +13,7 @@ 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 {
/**
@ -33,4 +33,8 @@ public class SysOrgEntity extends BaseEntity {
*/
@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,7 +12,7 @@ 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 {
/**
@ -31,5 +31,8 @@ public class SysPostEntity extends BaseEntity {
* 状态 0停用 1正常
*/
private Integer status;
/**
* 租户ID
*/
private Long tenantId;
}

View File

@ -15,7 +15,7 @@ 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 {
/**
@ -35,4 +35,8 @@ public class SysRoleEntity extends BaseEntity {
*/
@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;
}