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/common/entity/Parameter.java |   43 +++++++++++++++----------------------------
 1 files changed, 15 insertions(+), 28 deletions(-)

diff --git a/src/main/java/com/zy/common/entity/Parameter.java b/src/main/java/com/zy/common/entity/Parameter.java
index 548158f..1013cfc 100644
--- a/src/main/java/com/zy/common/entity/Parameter.java
+++ b/src/main/java/com/zy/common/entity/Parameter.java
@@ -6,6 +6,7 @@
 import com.core.common.SpringUtils;
 import com.zy.system.entity.Config;
 import com.zy.system.service.ConfigService;
+import lombok.Data;
 
 import java.util.HashMap;
 import java.util.List;
@@ -14,16 +15,22 @@
 /**
  * 鍩虹閰嶇疆涓績銆傚彲閫氳繃鍒锋柊鎸囧畾鎺ュ彛鍒锋柊鐩稿叧閰嶇疆
  */
+@Data
 public class Parameter {
 
     private volatile static Parameter instance = null;
+    // 楠岃瘉鐮佸紑鍏�
+    private String codeSwitch;
+    private String ledDefaultMsg;
+    // 搴撲綅鍒濆鍖栧彛浠�
+    private String locMastInitPwd;
 
-    private Parameter(){
+    private Parameter() {
     }
 
-    public static Parameter get(){
-        if (instance == null){
-            synchronized (Parameter.class){
+    public static Parameter get() {
+        if (instance == null) {
+            synchronized (Parameter.class) {
                 instance = reset();
                 return instance;
             }
@@ -31,10 +38,10 @@
         return instance;
     }
 
-	/**
-	 * 閲嶇疆
-	 */
-	public static Parameter reset() {
+    /**
+     * 閲嶇疆
+     */
+    public static Parameter reset() {
         ConfigService configService = SpringUtils.getBean(ConfigService.class);
         List<Config> configs = configService.selectList(new EntityWrapper<Config>().eq("status", "1"));
         Map<String, Object> data = new HashMap<>();
@@ -49,25 +56,5 @@
         return instance;
     }
 
-    // 楠岃瘉鐮佸紑鍏�
-    private String codeSwitch;
-
-    public String getCodeSwitch() {
-        return codeSwitch;
-    }
-
-    public void setCodeSwitch(String codeSwitch) {
-        this.codeSwitch = codeSwitch;
-    }
-
-    private String ledDefaultMsg;
-
-    public String getLedDefaultMsg() {
-        return ledDefaultMsg;
-    }
-
-    public void setLedDefaultMsg(String ledDefaultMsg) {
-        this.ledDefaultMsg = ledDefaultMsg;
-    }
 
 }

--
Gitblit v1.9.1