From 7c7aa7d9de437229f82c08a3a8f4ef37175d0759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E4=BF=8A=E6=9D=B0?= <9463626+zhou-junjiezjj@user.noreply.gitee.com> Date: Tue, 29 Aug 2023 19:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java | 1 + .../device_driver/lnsh/lnsh_package_site/ItemProtocol.java | 6 +++--- .../lnsh/lnsh_package_site/LnshPackageSiteDefination.java | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java index f277944..b27e193 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java @@ -44,6 +44,7 @@ import org.nl.modules.system.service.impl.ParamServiceImpl; import org.nl.modules.wql.util.SpringContextHolder; import org.nl.start.auto.run.NDCSocketConnectionAutoRun; +import javax.validation.constraints.NotBlank; import java.util.ArrayList; import java.util.HashMap; import java.util.List; diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/ItemProtocol.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/ItemProtocol.java index 8737a3a..1e861e0 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/ItemProtocol.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/ItemProtocol.java @@ -25,7 +25,7 @@ public class ItemProtocol { public static String item_to_vehicle_code = "to_vehicle_code"; public static String item_to_vehicle_type = "to_vehicle_type"; public static String item_to_is_package = "to_is_package"; - public static String item_to_is_weight = "to_is_weight"; + public static String item_is_weight = "is_weight"; public static String item_material = "material"; public static String item_barcode = "barcode"; public static String item_to_target = "to_target"; @@ -59,7 +59,7 @@ public class ItemProtocol { public int getTask() { return this.getOpcIntegerValue(item_task); } - public int getWeight() { return this.getOpcIntegerValue(item_to_is_weight);} + public int getWeight() { return this.getOpcIntegerValue(item_is_weight);} public int getMove() { return this.getOpcIntegerValue(item_move); @@ -134,7 +134,7 @@ public class ItemProtocol { list.add(new ItemDto(item_ioaction, "进出信号", "DB51.B4")); list.add(new ItemDto(item_error, "报警信号", "DB51.B5")); list.add(new ItemDto(item_task, "任务号", "DB51.D6")); - list.add(new ItemDto(item_to_is_weight, "重量", "DB51.D10")); + list.add(new ItemDto(item_is_weight, "重量", "DB51.D10")); list.add(new ItemDto(item_material, "物料", "DB51.STRING14.50")); list.add(new ItemDto(item_barcode, "条码", "DB51.W66")); return list; diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/LnshPackageSiteDefination.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/LnshPackageSiteDefination.java index 478c720..edac139 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/LnshPackageSiteDefination.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/lnsh/lnsh_package_site/LnshPackageSiteDefination.java @@ -64,7 +64,7 @@ public class LnshPackageSiteDefination implements OpcDeviceDriverDefination { list.add(new ItemDto(ItemProtocol.item_ioaction, "进出信号", "DB51.B4")); list.add(new ItemDto(ItemProtocol.item_error, "报警信号", "DB51.B5")); list.add(new ItemDto(ItemProtocol.item_task, "任务号", "DB51.B6")); - list.add(new ItemDto(ItemProtocol.item_to_is_weight, "重量", "DB51.B10")); + list.add(new ItemDto(ItemProtocol.item_is_weight, "重量", "DB51.B10")); list.add(new ItemDto(ItemProtocol.item_material, "物料", "DB51.STRING14.50")); list.add(new ItemDto(ItemProtocol.item_barcode, "条码", "DB51.B66")); return list;