From f5f01b92c757cf14e2da554b943f3092bf3b25a1 Mon Sep 17 00:00:00 2001 From: psh Date: Wed, 6 Mar 2024 18:01:08 +0800 Subject: [PATCH] fix --- .../cw_site/CwSiteDeviceDriver.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java index 02ff5b5..82a937d 100644 --- a/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java +++ b/acs/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device_driver/basedriver/cw_site/CwSiteDeviceDriver.java @@ -160,15 +160,16 @@ public class CwSiteDeviceDriver extends AbstractOpcDeviceDriver implements Devic if (move !=last_move||tier!=last_tier){ resultSucess=false; } - if (tier != last_tier&&move!=0 && this.getDeviceCode().endsWith("0101")||this.getDeviceCode().endsWith("0201") &&!resultSucess) { - //高度数量变更后通知lms - FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest(); - request.setState(String.valueOf(tier)); - request.setDevice_code(this.getDeviceCode()); - request.setType("2"); - acsToWmsService.notify(request); - resultSucess=true; - }else if (move ==1 && +// if (tier != last_tier&&move!=0 && this.getDeviceCode().endsWith("0101")||this.getDeviceCode().endsWith("0201") &&!resultSucess) { +// //高度数量变更后通知lms +// FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest(); +// request.setState(String.valueOf(tier)); +// request.setDevice_code(this.getDeviceCode()); +// request.setType("2"); +// acsToWmsService.notify(request); +// resultSucess=true; +// }else + if (move ==1 && (this.getDeviceCode().startsWith("ZJBDJW"))&&!resultSucess) { //点位数量变更后通知lms FeedBackTaskStatusRequest request = new FeedBackTaskStatusRequest();