From 365bcb4557cdc160fa04eaad8655c2b52748f5c8 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期六, 07 二月 2026 08:19:09 +0800
Subject: [PATCH] 序列化处理
---
rsf-server/src/main/java/com/vincent/rsf/server/system/entity/User.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/system/entity/User.java b/rsf-server/src/main/java/com/vincent/rsf/server/system/entity/User.java
index 259230c..fa580cb 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/system/entity/User.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/system/entity/User.java
@@ -3,6 +3,7 @@
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import com.vincent.rsf.framework.common.Cools;
import com.vincent.rsf.framework.common.SpringUtils;
import com.vincent.rsf.server.system.service.DeptService;
@@ -132,6 +133,7 @@
* 鏄惁鍒犻櫎 1: 鏄� 0: 鍚�
*/
@ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ")
+ @TableLogic
private Integer deleted;
/**
@@ -206,6 +208,7 @@
}
}
+ @JsonIgnore
public String getDeptId$(){
DeptService service = SpringUtils.getBean(DeptService.class);
Dept dept = service.getById(this.deptId);
@@ -215,6 +218,7 @@
return null;
}
+ @JsonIgnore
public String getTenantId$(){
TenantService service = SpringUtils.getBean(TenantService.class);
Tenant tenant = service.getById(this.tenantId);
@@ -245,6 +249,7 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
}
+ @JsonIgnore
public String getCreateBy$(){
UserService service = SpringUtils.getBean(UserService.class);
User user = service.getById(this.createBy);
@@ -254,6 +259,7 @@
return null;
}
+ @JsonIgnore
public String getUpdateTime$(){
if (Cools.isEmpty(this.updateTime)){
return "";
@@ -261,6 +267,7 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
}
+ @JsonIgnore
public String getUpdateBy$(){
UserService service = SpringUtils.getBean(UserService.class);
User user = service.getById(this.updateBy);
@@ -274,6 +281,7 @@
return this.roleIds;
}
+ @JsonIgnore
public Long[] getUserRoleIds() {
UserRoleService service = SpringUtils.getBean(UserRoleService.class);
List<UserRole> list = service.list(new LambdaQueryWrapper<UserRole>().eq(UserRole::getUserId, this.id));
--
Gitblit v1.9.1