From 82de5a307466894bbb0258f8a63a26a7bb96d80d Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 16 十月 2025 09:55:35 +0800 Subject: [PATCH] 13 --- src/main/java/com/zy/system/entity/User.java | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/zy/system/entity/User.java b/src/main/java/com/zy/system/entity/User.java index f8251bb..403e2fa 100644 --- a/src/main/java/com/zy/system/entity/User.java +++ b/src/main/java/com/zy/system/entity/User.java @@ -110,7 +110,7 @@ public String getHostName() { HostService service = SpringUtils.getBean(HostService.class); Host host = service.selectById(this.hostId); - if (!Cools.isEmpty(host)){ + if (!Cools.isEmpty(host)) { return host.getName(); } return null; @@ -185,9 +185,11 @@ return sex; } - public String getSex$(){ - if (null == this.sex){ return null; } - switch (this.sex){ + public String getSex$() { + if (null == this.sex) { + return null; + } + switch (this.sex) { case 0: return "鐢�"; case 1: @@ -207,18 +209,19 @@ return roleId; } - public String getRoleName(){ + public String getRoleName() { RoleService service = SpringUtils.getBean(RoleService.class); Role role = service.selectById(this.roleId); - if (!Cools.isEmpty(role)){ + if (!Cools.isEmpty(role)) { return role.getName(); } return null; } - public String getRoleLeaderCode(){ + + public String getRoleLeaderCode() { RoleService service = SpringUtils.getBean(RoleService.class); Role role = service.selectById(this.roleId); - if (!Cools.isEmpty(role)){ + if (!Cools.isEmpty(role)) { return role.getLeaderCode(); } return null; @@ -232,8 +235,8 @@ return createTime; } - public String getCreateTime$(){ - if (Cools.isEmpty(this.createTime)){ + public String getCreateTime$() { + if (Cools.isEmpty(this.createTime)) { return ""; } return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); @@ -247,9 +250,11 @@ return status; } - public String getStatus$(){ - if (null == this.status){ return null; } - switch (this.status){ + public String getStatus$() { + if (null == this.status) { + return null; + } + switch (this.status) { case 1: return "鍚敤"; case 0: -- Gitblit v1.9.1