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/Resource.java | 49 +++++++++++++++++++++++++++----------------------
1 files changed, 27 insertions(+), 22 deletions(-)
diff --git a/src/main/java/com/zy/system/entity/Resource.java b/src/main/java/com/zy/system/entity/Resource.java
index 01b81f9..a5440b7 100644
--- a/src/main/java/com/zy/system/entity/Resource.java
+++ b/src/main/java/com/zy/system/entity/Resource.java
@@ -52,9 +52,10 @@
*/
private Short status;
- public Resource() {}
+ public Resource() {
+ }
- public Resource(String code,String name,Long resourceId,Short level,Integer sort,Short status) {
+ public Resource(String code, String name, Long resourceId, Short level, Integer sort, Short status) {
this.code = code;
this.name = name;
this.resourceId = resourceId;
@@ -100,26 +101,32 @@
return resourceId;
}
- public String getResourceName(){
+ public void setResourceId(Long resourceId) {
+ this.resourceId = resourceId;
+ }
+
+ public String getResourceName() {
ResourceService service = SpringUtils.getBean(ResourceService.class);
Resource resource = service.selectById(this.resourceId);
- if (!Cools.isEmpty(resource)){
+ if (!Cools.isEmpty(resource)) {
return resource.getName();
}
return null;
- }
-
- public void setResourceId(Long resourceId) {
- this.resourceId = resourceId;
}
public Short getLevel() {
return level;
}
- public String getLevel$(){
- if (null == this.level){ return null; }
- switch (this.level){
+ public void setLevel(Short level) {
+ this.level = level;
+ }
+
+ public String getLevel$() {
+ if (null == this.level) {
+ return null;
+ }
+ switch (this.level) {
case 1:
return "涓�绾ц彍鍗�";
case 2:
@@ -129,10 +136,6 @@
default:
return String.valueOf(this.level);
}
- }
-
- public void setLevel(Short level) {
- this.level = level;
}
public Integer getSort() {
@@ -147,9 +150,15 @@
return status;
}
- public String getStatus$(){
- if (null == this.status){ return null; }
- switch (this.status){
+ public void setStatus(Short status) {
+ this.status = status;
+ }
+
+ public String getStatus$() {
+ if (null == this.status) {
+ return null;
+ }
+ switch (this.status) {
case 1:
return "姝e父";
case 0:
@@ -157,10 +166,6 @@
default:
return String.valueOf(this.status);
}
- }
-
- public void setStatus(Short status) {
- this.status = status;
}
--
Gitblit v1.9.1