From 312dc55b139d16a73e58cd6899865e11e86c6fdc Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 04 Jul 2022 19:46:15 +0800
Subject: [PATCH] fix
---
src/main/java/com/xcong/farmer/cms/modules/system/entity/UserEntity.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 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 bd346e4..6c43a8e 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;
/**
* 账号状态 - 禁用
*/
@@ -41,5 +47,8 @@
//拓展备注
private String remark;
//所属ID
- private Long belongId;
+ private Long companyId;
+
+ @TableField(exist = false)
+ private String roleName;
}
--
Gitblit v1.9.1