From 3ee0ff0bd24d4df9b795146ece6da43a78bf8bd0 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 12 十二月 2023 20:55:18 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   37 +++++++++++++------------------------
 1 files changed, 13 insertions(+), 24 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 ccdf575..990265b 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -679,30 +679,19 @@
 //                            && (staProtocol.getWorkNo() > 0)
                             && staProtocol.isPakMk()) {
 
-                        WrkMast wrkMast = null;
-                        if (pickSta.getStaNo() == 325 || pickSta.getStaNo() == 331 || pickSta.getStaNo() == 333 || pickSta.getStaNo() == 339) {
-                            if (staProtocol.getWorkNo() == 0) {
-                                continue;
-                            }
-                            //鏍规嵁宸ヤ綔鍙锋悳绱㈠伐浣滄。
-                            wrkMast = wrkMastMapper.selectByWorkNo(staProtocol.getWorkNo().intValue());
-                        }else {
-                            //鏍规嵁鎵樼洏鐮佹悳绱㈠伐浣滄。
-                            // 鑾峰彇鏉$爜鎵弿浠俊鎭�
-                            BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, pickSta.getBarcode());
-                            if (barcodeThread == null) {
-                                continue;
-                            }
-                            String barcode = barcodeThread.getBarcode();
-                            if (Cools.isEmpty(barcode)) {
-                                continue;
-                            }
-                            if ("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) {
-                                continue;
-                            }
-                            wrkMast = wrkMastMapper.selectByBarcode(barcode);
+                        // 鑾峰彇鏉$爜鎵弿浠俊鎭�
+                        BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, pickSta.getBarcode());
+                        if (barcodeThread == null) {
+                            continue;
                         }
-
+                        String barcode = barcodeThread.getBarcode();
+                        if (Cools.isEmpty(barcode)) {
+                            continue;
+                        }
+                        if ("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) {
+                            continue;
+                        }
+                        WrkMast wrkMast = wrkMastMapper.selectByBarcode(barcode);
                         if (wrkMast == null) {//鎵句笉鍒板伐浣滄。
                             continue;
                         }
@@ -1335,7 +1324,7 @@
             if (wrkMast.getStaNo() == 300) {
                 //鍑�300绔欙紝妫�娴�300绔欎换鍔℃暟閲�
                 List<WrkMast> wrkMasts = wrkMastMapper.select300Wrk();
-                if (wrkMasts.size() >= 4) {
+                if (wrkMasts.size() >= 20) {
                     News.info("{}浠诲姟锛岃緭閫佺嚎浠诲姟杩囪浇{}", wrkMast.getWrkNo(), wrkMasts.size());
                     return false;
                 }

--
Gitblit v1.9.1