From ce7a8f994eead6c0c982afa01919427685b2bd1c Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期三, 21 五月 2025 11:02:55 +0800 Subject: [PATCH] #调试 --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 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 cd49969..1f14dbc 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -150,14 +150,23 @@ errMsg = "鍙宠秴闄�"; back = true; } - if (!back && staProtocol.isWeightErr()) { - errMsg = "瓒呴噸"; + if (!back && staProtocol.getWeight() > 1000) { + errMsg = "瓒呴噸鎴栨湭璇诲彇"; back = true; } if (!back && staProtocol.isBarcodeErr()) { errMsg = "鎵爜澶辫触"; back = true; } + if(staProtocol.getWeight() <= 0 ){ + continue; + } +// if (!back && staProtocol.getWeight() == 0.0) { +// errMsg = "閲嶉噺鑾峰彇澶辫触"; +// back = true; +// } + +// News.info("{}閲嶉噺", staProtocol.getWeight()); // 閫�鍥� if (back) { @@ -245,6 +254,7 @@ param.setIoType(1); param.setSourceStaNo(inSta.getStaNo()); param.setLocType1(locTypeDto.getLocType1()); + param.setWeight(staProtocol.getWeight()); String response = new HttpHandler.Builder() .setTimeout(30,TimeUnit.SECONDS) .setUri(wmsUrl) @@ -301,7 +311,8 @@ staProtocol.setStaNo(inSta.getBackSta().shortValue()); devpThread.setPakMk(staProtocol.getSiteId(), false); MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); -// + log.error("杈撻�佺嚎涓嬪彂2锛�" + staProtocol.getWorkNo() + "," + staProtocol.getStaNo()); + // if (ledThread != null) { String errorMsg = jsonObject.getString("msg"); if (!Cools.isEmpty(errorMsg)) { -- Gitblit v1.9.1