From b81b19dd9112d54e144b45e40e778423fc76b4e0 Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Thu, 18 May 2023 10:22:22 +0800 Subject: [PATCH] =?UTF-8?q?REV=20=E6=A0=A1=E9=AA=8C=E6=89=AB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardCoveyorControlWithScannerDeviceDriver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java index b5941cc..f602829 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java @@ -257,12 +257,12 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe logServer.deviceExecuteLog(this.device_code, "", "", "扫码器扫到的条码为:" + barcode()); } //申请任务 - if (!StrUtil.isEmpty(barcode()) && !StrUtil.equals(barcode(), "NoRead") && !requireSucess) { + if (!StrUtil.isEmpty(barcode()) && !StrUtil.equals(barcode(), "NoRead") && barcode().trim().length() == 12 && !requireSucess) { logServer.deviceExecuteLog(this.device_code, "", "", "开始申请任务~~~~~~"); instruction_require(barcode()); logServer.deviceExecuteLog(this.device_code, "", "", "申请任务成功~~~~~~"); } - if (!StrUtil.isEmpty(barcode()) && !StrUtil.equals(barcode(), "NoRead") && !applySucess) { + if (!StrUtil.isEmpty(barcode()) && !StrUtil.equals(barcode(), "NoRead") && barcode().trim().length() == 12 && !applySucess) { instruction_apply(barcode()); } }