From 09f634c766e8daeeb687d48fd645f225afc3c082 Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期五, 25 七月 2025 16:41:22 +0800 Subject: [PATCH] #优 --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 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 3e01e03..c9c56aa 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -587,7 +587,7 @@ String barcode = barcodeThread.getBarcode(); // 濡傛灉鍓嶅伐浣嶆湁璐� + 鎵爜鍣ㄦ湁鏉$爜 - if (staProtocolIn.getStamp() == 1 && barcode != null && !barcode.isEmpty()) { + if (staProtocolIn.getStamp() == 1 && !barcode.equals("00000000") && !barcode.isEmpty()) { log.info("鐢熸垚淇″彿鏃堕棿: {}", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date())); if (wrkMastService.selectOne(new EntityWrapper<WrkMast>() .eq("barcode", barcode) @@ -631,7 +631,7 @@ } } else { String msg = json.getString("msg"); - if (!"宸ヤ綔妗e凡瀛樺湪".equals(msg)) { + if (!"宸ヤ綔妗e凡瀛樺湪".equals(msg) && staProtocol.getWorkNo()<9999) { staProtocol.setWorkNo(wrkNo++); staProtocol.setStaNo(inSta.getBackSta().shortValue()); devpThread.setPakMk(staProtocol.getSiteId(), false); @@ -1510,9 +1510,10 @@ log.info("璇诲彇鍒板伐浣滃彿鏃堕棿: {}", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date())); } - if (staProtocol.isAutoing() && staProtocol.getWorkNo() > 0 && staProtocol.getWorkNo() <9998 +// && staProtocol.getWorkNo() > 0 && staProtocol.getWorkNo() <9998 + if (staProtocol.isAutoing() && staProtocol.getWorkNo() > 0 && staProtocol.getWorkNo() <9998 && staDetl.getCanining() != null && staDetl.getCanining().equals("Y")) { - log.info("鍙叆鏃堕棿: {}", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date())); + log.info("浠诲姟婊¤冻涓嬪彂鏃堕棿: {}", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date())); flag = true; } @@ -1525,6 +1526,7 @@ } // 鑾峰彇宸ヤ綔鐘舵�佷负2锛堣澶囦笂璧帮級鐨勫叆搴撳伐浣滄。 WrkMast wrkMast = wrkMastMapper.selectPakInStep2(slave.getId(), staProtocol.getWorkNo(), crnStn.getStaNo()); +// wrkMast = wrkMast1; if (null == wrkMast) { log.info("" + mark + " - 1" + " - 4" + " - 鏌ヨ鏃犲緟鍏ュ簱鏁版嵁--wrk_sts=2, 宸ヤ綔鍙�={}", staProtocol.getWorkNo()); News.infoNoLog("" + mark + " - 1" + " - 4" + " - 鏌ヨ鏃犲緟鍏ュ簱鏁版嵁--wrk_sts=2, 宸ヤ綔鍙�={}", staProtocol.getWorkNo()); @@ -1576,17 +1578,6 @@ News.error("" + mark + " - 1" + " - 16" + " - 鍫嗗灈鏈哄懡浠や笅鍙戝け璐ワ紝鍫嗗灈鏈哄彿={}锛屼换鍔℃暟鎹�={}", wrkMast.getCrnNo(), JSON.toJSON(crnCommand)); } else { -// long startTime = System.currentTimeMillis(); -// while ((System.currentTimeMillis() - startTime) < COMMAND_TIMEOUT) { -// -// if (true) { -// break; -// } -// -// try{ -// Thread.sleep(500); -// }catch(Exception ignore){} -// } // 淇敼宸ヤ綔妗g姸鎬� 2.璁惧涓婅蛋 => 3.鍚婅溅鍏ュ簱涓� Date now = new Date(); -- Gitblit v1.9.1