From 2228c73293e419ed249a27c426c0d08ce95d517e Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期五, 14 三月 2025 15:55:13 +0800
Subject: [PATCH] 配置信息
---
src/main/java/com/zy/system/entity/User.java | 62 ++++++++++++++++---------------
1 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/src/main/java/com/zy/system/entity/User.java b/src/main/java/com/zy/system/entity/User.java
index c5086aa..53e1aea 100644
--- a/src/main/java/com/zy/system/entity/User.java
+++ b/src/main/java/com/zy/system/entity/User.java
@@ -76,25 +76,25 @@
return username;
}
- public Long getHostId() {
- return hostId;
+ public void setUsername(String username) {
+ this.username = username;
}
- public String getHostName() {
- HostService service = SpringUtils.getBean(HostService.class);
- Host host = service.selectById(this.hostId);
- if (!Cools.isEmpty(host)){
- return host.getName();
- }
- return null;
+ public Long getHostId() {
+ return hostId;
}
public void setHostId(Long hostId) {
this.hostId = hostId;
}
- public void setUsername(String username) {
- this.username = username;
+ public String getHostName() {
+ HostService service = SpringUtils.getBean(HostService.class);
+ Host host = service.selectById(this.hostId);
+ if (!Cools.isEmpty(host)) {
+ return host.getName();
+ }
+ return null;
}
public String getMobile() {
@@ -117,41 +117,47 @@
return roleId;
}
- public String getRoleName(){
+ public void setRoleId(Long roleId) {
+ this.roleId = roleId;
+ }
+
+ 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 void setRoleId(Long roleId) {
- this.roleId = roleId;
}
public Date getCreateTime() {
return createTime;
}
- public String getCreateTime$(){
- if (Cools.isEmpty(this.createTime)){
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getCreateTime$() {
+ if (Cools.isEmpty(this.createTime)) {
return "";
}
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
- }
-
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
}
public Integer getStatus() {
return status;
}
- public String getStatus$(){
- if (null == this.status){ return null; }
- switch (this.status){
+ public void setStatus(Integer status) {
+ this.status = status;
+ }
+
+ public String getStatus$() {
+ if (null == this.status) {
+ return null;
+ }
+ switch (this.status) {
case 1:
return "鍚敤";
case 2:
@@ -161,10 +167,6 @@
default:
return String.valueOf(this.status);
}
- }
-
- public void setStatus(Integer status) {
- this.status = status;
}
--
Gitblit v1.9.1