From 6c3d4d0530fd8f64e6fc92b996ec724eba316e94 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 14 五月 2024 09:08:10 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index 3ef60c2..bbdb052 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -20,6 +20,7 @@
 import com.zy.common.utils.Synchro;
 import com.zy.system.entity.User;
 import com.zy.system.service.SaasLogService;
+import lombok.Synchronized;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -103,6 +104,7 @@
     private PlaQtyService plaQtyService;
     @Autowired
     private SaasLogService saasLogService;
+
 
 
 
@@ -1236,6 +1238,7 @@
 
     @Override
     @Transactional
+    @Synchronized
     public void plaPakout(String brand, String locNo, String batch, Integer packageNo, String orderNo, String plaQtyId, String wrkNo, Double anfme, boolean isReplace) {
         Pla pla = plaService.selectByBatchAndPackageNo(batch, packageNo,brand);
 
@@ -1357,4 +1360,32 @@
         manPakOutService.updateById(manPakOut);
 
     }
+
+    @Override
+    public List<Pla> pdaSelectInfmt(String barcode) {
+        EntityWrapper<Pla> plaEntityWrapper = new EntityWrapper<>();
+        String[] split = barcode.split(";");
+        if (split.length == 4){
+            plaEntityWrapper.eq("brand",split[0]);
+            plaEntityWrapper.eq("batch",split[1]);
+            plaEntityWrapper.eq("package_no",split[2]);
+            plaEntityWrapper.eq("line",split[3]);
+        }else if (split.length == 1){
+            Node node = nodeService.selectOne(new EntityWrapper<Node>().eq("name", barcode));
+            if (Cools.isEmpty(node)){
+                throw new CoolException("璇锋鏌ヨ緭鍏ョ殑搴撲綅鐮�");
+            }
+            plaEntityWrapper.eq("loc_no",barcode);
+
+        }else {
+            throw new CoolException("鏉$爜淇℃伅鏈夎!");
+        }
+
+
+        List<Pla> plaList = plaService.selectList(plaEntityWrapper);
+        if (Cools.isEmpty(plaList)){
+            throw new CoolException("鏈煡璇㈠埌搴撳瓨鐗╂枡淇℃伅");
+        }
+        return plaList;
+    }
 }

--
Gitblit v1.9.1