From 16a3dbbf28606a90dd6dadeffe843f53f72d3955 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期五, 29 三月 2024 16:28:57 +0800
Subject: [PATCH] 初始化库位和站点

---
 src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
index 55e753c..b1b53d9 100644
--- a/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java
@@ -42,6 +42,8 @@
     private AgvLocDetlService agvLocDetlService;
     @Autowired
     private AgvWrkMastService agvWrkMastService;
+    @Autowired
+    private AgvWorkService agvWorkService;
 
 
     /*
@@ -53,6 +55,7 @@
         if (Cools.isEmpty(param.getBarcode(), param.getCombMats())) {
             throw new CoolException(BaseRes.PARAM);
         }
+        param.setContainerType(Short.valueOf(param.getBarcode().substring(0,2)));
 
         //妫�鏌ユ槸鍚﹀凡瀛樺湪鐩稿悓鐨勬墭鐩樻潯鐮侊紝瀛樺湪鍒欐姏鍑哄紓甯�
         if (agvWaitPakinService.selectCount(new EntityWrapper<AgvWaitPakin>().eq("supp_code", param.getBarcode())) > 0) {
@@ -80,7 +83,7 @@
         if(StringUtils.isEmpty(param.getLocno())){
             return "缁勬墭鎴愬姛";
         }else {
-            combBinding(param.getBarcode(),param.getLocno());
+            combBinding(param.getBarcode(),param.getLocno(),param.getContainerType());
             return "缁勬墭鎴愬姛锛岀粦瀹氱珯鐐规垚鍔�";
         }
 
@@ -217,7 +220,7 @@
     }
 
     @Override
-    public void combBinding(String barcode, String stationCode) {
+    public void combBinding(String barcode, String stationCode, Short containerType) {
 
         if(Cools.isEmpty(agvWaitPakinService.selectByContainerCode(barcode))){
             throw new CoolException("璇ユ枡绠辨湭缁勬墭锛屾棤娉曠粦瀹氱珯鐐�");
@@ -243,6 +246,7 @@
 
         agvBasDevp.setBarcode(barcode);
         agvBasDevp.setLocSts("F");
+        agvBasDevp.setLocType2(containerType);
         agvBasDevpService.update(agvBasDevp,(new EntityWrapper<AgvBasDevp>().eq("dev_no",stationCode)));
     }
 
@@ -255,4 +259,20 @@
         }).collect(Collectors.toList());
     }
 
+    @Override
+    public void pakinEmpty(String devNo, boolean pakin) {
+        //褰撳墠绔欑偣淇℃伅
+        AgvBasDevp agvBasDevp = agvBasDevpService.selectById(devNo);
+        //瀵绘壘鐩稿悓绫诲瀷鐨勫簱浣�
+
+        //鐢熸垚绌虹洏宸ヤ綔妗�
+
+        //鏇存敼搴撲綅鐘舵�佷互鍙婄珯鐐圭姸鎬�
+    }
+
+    @Override
+    public void pakoutEmpty(String devNo) {
+
+    }
+
 }

--
Gitblit v1.9.1