新增租户字段
This commit is contained in:
parent
4defbb8935
commit
5bba8cbd66
|
@ -34,5 +34,9 @@ public class SysAttachmentEntity extends BaseEntity {
|
|||
* 存储平台
|
||||
*/
|
||||
private String platform;
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
|
||||
}
|
|
@ -39,4 +39,8 @@ public class SysDictDataEntity extends BaseEntity {
|
|||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
}
|
||||
|
|
|
@ -39,4 +39,8 @@ public class SysDictTypeEntity extends BaseEntity {
|
|||
* 动态sql
|
||||
*/
|
||||
private String dictSql;
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
}
|
|
@ -58,5 +58,10 @@ public class SysLogLoginEntity {
|
|||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
|
||||
}
|
|
@ -100,4 +100,9 @@ public class SysLogOperateEntity {
|
|||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
|
||||
}
|
|
@ -8,29 +8,33 @@ import net.maku.framework.mybatis.entity.BaseEntity;
|
|||
|
||||
/**
|
||||
* 机构管理
|
||||
*
|
||||
*
|
||||
* @author 阿沐 babamu@126.com
|
||||
* <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;
|
||||
}
|
|
@ -41,5 +41,8 @@ public class SysParamsEntity extends BaseEntity {
|
|||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -10,29 +10,33 @@ import net.maku.system.enums.DataScopeEnum;
|
|||
|
||||
/**
|
||||
* 角色
|
||||
*
|
||||
*
|
||||
* @author 阿沐 babamu@126.com
|
||||
* <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;
|
||||
}
|
||||
|
|
|
@ -60,6 +60,10 @@ public class SysUserEntity extends BaseEntity {
|
|||
/**
|
||||
* 机构名称
|
||||
*/
|
||||
@TableField(exist=false)
|
||||
@TableField(exist = false)
|
||||
private String orgName;
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private Long tenantId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user