This commit is contained in:
2022-12-07 19:09:02 +08:00
parent f12bbce1e4
commit 687db4738f
2 changed files with 6 additions and 0 deletions

View File

@@ -429,6 +429,9 @@ public class HfGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver imp
//将扩展表中的字符串数据转换成集合
public List<String> getExtraDeviceCodes(String extraName) {
String extraValue = (String) this.getDevice().getExtraValue().get(extraName);
if (StrUtil.isEmpty(extraValue)){
return new ArrayList<>();
}
String devicesString = extraValue.substring(1, extraValue.length() - 1);
List<String> devicesList = new ArrayList<>();
String[] devices = devicesString.split(",");

View File

@@ -686,6 +686,9 @@ public class HfTwoRGVDeviceDriver extends AbstractOpcDeviceDriver implements Dev
//将扩展表中的字符串数组数据转换成集合
public List<String> getExtraDeviceCodes(String extraName){
String extraValue = (String) this.getDevice().getExtraValue().get(extraName);
if (StrUtil.isEmpty(extraValue)){
return new ArrayList<>();
}
String devicesString = extraValue.substring(1, extraValue.length() - 1);
List<String> devicesList = new ArrayList<>();
String[] devices = devicesString.split(",");