From 8951379b7eb99016e945f353613c1c5e262e4638 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 13 三月 2024 09:52:37 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   36 ++++++++++++++++++++++++++++++------
 1 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index d4f93e1..d44b9c2 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -181,6 +181,7 @@
                         continue;
                     }
                     String barcode = barcodeThread.getBarcode();
+                    staProtocol.setBarcode(barcode);
                     if(!Cools.isEmpty(barcode)) {
                         StaDescService staDescService = SpringUtils.getBean(StaDescService.class);
 
@@ -1000,32 +1001,55 @@
             //鎸囦护宸插畬鎴愶紝鏇存柊浠诲姟
             if (taskWrk.getIoType() == 1) {
                 //鍏ュ簱浠诲姟
-                taskWrk.setWrkSts(4);//3.鍚婅溅鍏ュ簱涓� => 4.鍏ュ簱瀹屾垚
-                //taskWrk.setStatus(TaskStatusType.COMPLETE.id);
+//                taskWrk.setWrkSts(4);//3.鍚婅溅鍏ュ簱涓� => 4.鍏ュ簱瀹屾垚
+                taskWrk.setStatus(TaskStatusType.OVER.id);
                 taskWrk.setModiTime(now);
                 taskWrkService.updateById(taskWrk);
 
                 //鏇存柊搴撲綅鐘舵��
                 LocMast locMast = locMastService.selectByLocNo(taskWrk.getTargetPoint());
-                locMast.setLocSts("F");//F.鍦ㄥ簱
+                locMast.setLocSts("Z");//F.鍦ㄥ簱
                 locMast.setBarcode(taskWrk.getBarcode());//鎵樼洏鐮�
                 locMast.setModiTime(now);
                 locMast.setModiUser(9999L);
                 locMastService.updateById(locMast);
             } else if (taskWrk.getIoType() == 2) {
                 //鍑哄簱浠诲姟
-                taskWrk.setWrkSts(14);//12.鍚婅溅鍑哄簱涓� => 14.鍑哄簱瀹屾垚
-//                taskWrk.setStatus(TaskStatusType.COMPLETE.id);
+//                taskWrk.setWrkSts(14);//12.鍚婅溅鍑哄簱涓� => 14.鍑哄簱瀹屾垚
+                taskWrk.setStatus(TaskStatusType.OVER.id);
                 taskWrk.setModiTime(now);
                 taskWrkService.updateById(taskWrk);
 
                 //鏇存柊搴撲綅鐘舵��
                 LocMast locMast = locMastService.selectByLocNo(taskWrk.getStartPoint());
-                locMast.setLocSts("O");//O.绌哄簱浣�
+                locMast.setLocSts("K");//O.绌哄簱浣�
                 locMast.setBarcode("");//鎵樼洏鐮�
                 locMast.setModiTime(now);
                 locMast.setModiUser(9999L);
                 locMastService.updateById(locMast);
+            } else if (taskWrk.getIoType() == 3) {
+
+                //鏇存柊璧峰搴撲綅鐘舵��
+                LocMast locMastStart = locMastService.selectByLocNo(taskWrk.getStartPoint());
+                locMastStart.setLocSts("K");//O.绌哄簱浣�
+                locMastStart.setBarcode("");//鎵樼洏鐮�
+                locMastStart.setModiTime(now);
+                locMastStart.setModiUser(9999L);
+                locMastService.updateById(locMastStart);
+
+                //鏇存柊鐩爣搴撲綅鐘舵��
+                LocMast locMast = locMastService.selectByLocNo(taskWrk.getTargetPoint());
+                locMast.setLocSts("Z");//F.鍦ㄥ簱
+                locMast.setBarcode(taskWrk.getBarcode());//鎵樼洏鐮�
+                locMast.setModiTime(now);
+                locMast.setModiUser(9999L);
+                locMastService.updateById(locMast);
+
+                taskWrk.setStatus(TaskStatusType.OVER.id);
+                taskWrk.setModiTime(now);
+                taskWrkService.updateById(taskWrk);
+
+
             }
         }
     }

--
Gitblit v1.9.1