From 2ce6327ec49e7fe73cc1cd3bcc2b63b28d89d38f Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 17 三月 2026 14:05:25 +0800
Subject: [PATCH] #

---
 rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/PdaOutStockServiceImpl.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/PdaOutStockServiceImpl.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/PdaOutStockServiceImpl.java
index 2cc2e07..928f371 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/PdaOutStockServiceImpl.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/service/impl/PdaOutStockServiceImpl.java
@@ -24,7 +24,7 @@
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
-import javax.annotation.Resource;
+import jakarta.annotation.Resource;
 import java.math.BigDecimal;
 import java.util.*;
 import java.util.stream.Collectors;
@@ -283,6 +283,17 @@
             if (!taskService.updateById(task)) {
                 throw new CoolException("浠诲姟鐘舵�佹洿鏂板け璐�");
             }
+            if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type)) {
+                BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>()
+                        .eq(BasStation::getBarcode, param.getContainerNo()));
+                if (!Cools.isEmpty(basStation)) {
+                    basStation.setUseStatus(LocStsType.LOC_STS_TYPE_D.type);
+                    basStation.setUpdateTime(new Date());
+                    if (!basStationService.updateById(basStation)){
+                        throw new CoolException("绔欑偣鐘舵�佹洿鏂板け璐�");
+                    }
+                }
+            }
         }
 
         return R.ok();
@@ -525,3 +536,4 @@
                 item -> new BigDecimal(item.getAnfme().toString()).equals(new BigDecimal(item.getQty().toString())));
     }
 }
+

--
Gitblit v1.9.1