From 36a143b19cc919c9a814d065029b2340ef7330d7 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 13 Jun 2022 14:56:25 +0800 Subject: [PATCH] 20220606 --- src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java b/src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java index 10e9376..6179e1c 100644 --- a/src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java +++ b/src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java @@ -1,6 +1,8 @@ package com.xcong.farmer.cms.modules.system.entity; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; +import com.google.type.Date; import com.xcong.farmer.cms.common.system.base.BaseEntity; import lombok.Data; @@ -18,6 +20,10 @@ * 默认密码 */ public static final String PASSWORD_DEFAULT = "123456"; + /** + * 系统最高账户的所属默认 + */ + public static final Long USER_BELONG_TOP = 0L; /** * 账号状态 - 禁用 */ @@ -40,4 +46,9 @@ private Integer status; //拓展备注 private String remark; + //所属ID + private Long belongId; + + @TableField(exist = false) + private String roleName; } -- Gitblit v1.9.1