From 18b40273b422f69b08c5a605d2b7114c7ccef533 Mon Sep 17 00:00:00 2001
From: tqs <56479841@qq.com>
Date: 星期二, 10 一月 2023 12:58:42 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/SiemensDevpThread.java | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index cf783ea..0328479 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -272,6 +272,39 @@
if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
staProtocol.setPakMk(true);
}
+
+ //20230110锛屾棩蹇楁墦鍗帮紝纭鏀跺埌鍏ュ簱绔欏彲鍏ヤ俊鍙锋椂锛屽搴旀潯鐮佹暟鎹槸鍚﹀凡鏈�
+ if ((siteId==101 || siteId==109 || siteId==117 || siteId==201 || siteId==207 || siteId==213)
+ && staProtocol.isInEnable()){
+ Integer barcodeId = 0;
+ switch (siteId){
+ case 101:
+ barcodeId=1;
+ break;
+ case 109:
+ barcodeId=2;
+ break;
+ case 117:
+ barcodeId=3;
+ break;
+ case 201:
+ barcodeId=4;
+ break;
+ case 207:
+ barcodeId=5;
+ break;
+ case 213:
+ barcodeId=6;
+ break;
+ }
+ BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, barcodeId);
+ if(barcodeThread!=null){
+ log.info("{}绔欐湁鍙叆淇″彿鏃讹紝鏉$爜鍊间负{}", siteId, barcodeThread.getBarcode());
+ if(Cools.isEmpty(barcodeThread.getBarcode())){
+ staProtocol.setInEnable(false);//鏉$爜鏁版嵁涓虹┖鏃讹紝鍏堟竻涓�娆″唴瀛樼殑绔欑偣鍙叆淇″彿锛岀瓑寰呬笅涓�娆¤幏鍙栧彲鍏ヤ俊鍙�
+ }
+ }
+ }
}
}
--
Gitblit v1.9.1