From d6ff18e0ff89d36e80195da43ca40bf3a8f42b2c Mon Sep 17 00:00:00 2001
From: Administrator <pjb>
Date: 星期日, 15 六月 2025 09:38:14 +0800
Subject: [PATCH] wms分配库位异常

---
 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