新增租户字段

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; private String platform;
/**
* 租户ID
*/
private Long tenantId;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -41,5 +41,8 @@ public class SysParamsEntity extends BaseEntity {
*/ */
private String remark; 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> * <a href="https://maku.net">MAKU</a>
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper = false)
@TableName("sys_post") @TableName("sys_post")
public class SysPostEntity extends BaseEntity { public class SysPostEntity extends BaseEntity {
/** /**
* 岗位编码 * 岗位编码
*/ */
private String postCode; private String postCode;
/** /**
* 岗位名称 * 岗位名称
*/ */
private String postName; private String postName;
/** /**
* 排序 * 排序
*/ */
private Integer sort; private Integer sort;
/** /**
* 状态 0停用 1正常 * 状态 0停用 1正常
*/ */
private Integer status; private Integer status;
/**
* 租户ID
*/
private Long tenantId;
} }

View File

@ -10,29 +10,33 @@ import net.maku.system.enums.DataScopeEnum;
/** /**
* 角色 * 角色
* *
* @author 阿沐 babamu@126.com * @author 阿沐 babamu@126.com
* <a href="https://maku.net">MAKU</a> * <a href="https://maku.net">MAKU</a>
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false) @EqualsAndHashCode(callSuper = false)
@TableName("sys_role") @TableName("sys_role")
public class SysRoleEntity extends BaseEntity { public class SysRoleEntity extends BaseEntity {
/** /**
* 角色名称 * 角色名称
*/ */
private String name; private String name;
/** /**
* 备注 * 备注
*/ */
private String remark; private String remark;
/** /**
* 数据范围 {@link DataScopeEnum} * 数据范围 {@link DataScopeEnum}
*/ */
private Integer dataScope; private Integer dataScope;
/** /**
* 机构ID * 机构ID
*/ */
@TableField(fill = FieldFill.INSERT) @TableField(fill = FieldFill.INSERT)
private Long orgId; 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; private String orgName;
/**
* 租户ID
*/
private Long tenantId;
} }