From f6fe949db75c0879ca506eadce6976eb94492d09 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 24 五月 2025 15:39:42 +0800
Subject: [PATCH] 1.出库作业未判断小于零的作业(完成) 2.入出为历史添加库位号,托盘码显示(完成) 3.确认出为完成后,是否清空托盘码(完成) 4.库位主档托盘码未显示(完成)

---
 rsf-server/src/main/java/com/vincent/rsf/server/common/utils/FieldsUtils.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/common/utils/FieldsUtils.java b/rsf-server/src/main/java/com/vincent/rsf/server/common/utils/FieldsUtils.java
index 039e485..c65ac30 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/common/utils/FieldsUtils.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/common/utils/FieldsUtils.java
@@ -13,6 +13,7 @@
 import com.vincent.rsf.server.system.entity.FieldsItem;
 import com.vincent.rsf.server.system.service.FieldsItemService;
 import com.vincent.rsf.server.system.service.FieldsService;
+import lombok.Synchronized;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -145,8 +146,9 @@
      * @return
      * @time 2025/4/7 15:28
      */
+    @Synchronized
     @Transactional(rollbackFor = Exception.class)
-    public static synchronized  void updateFieldsValue(Map<String, Object> params) throws Exception {
+    public static void updateFieldsValue(Map<String, Object> params) throws Exception {
         List<Fields> fields = getFieldsSta();
         if (fields.isEmpty()) { return; }
         Object fieldsIndex = params.get("fieldsIndex");

--
Gitblit v1.9.1