|
@ -25,7 +25,7 @@ public interface OpcDeviceDriver extends DeviceDriver { |
|
|
|
|
|
|
|
|
//设备扩展表【acs_device_extra】
|
|
|
//设备扩展表【acs_device_extra】
|
|
|
WQLObject extraTab = WQLObject.getWQLObject("acs_device_extra"); |
|
|
WQLObject extraTab = WQLObject.getWQLObject("acs_device_extra"); |
|
|
JSONArray arr = extraTab.query("filed_type='02' and device_id = '" + this.getDevice().getDevice_id() + "'").getResultJSONArray(0); |
|
|
JSONArray arr = extraTab.query(" (filed_type='02' or filed_type='03' )and device_id = '" + this.getDevice().getDevice_id() + "'").getResultJSONArray(0); |
|
|
for (int i = 0; i < arr.size(); i++) { |
|
|
for (int i = 0; i < arr.size(); i++) { |
|
|
JSONObject json = arr.getJSONObject(i); |
|
|
JSONObject json = arr.getJSONObject(i); |
|
|
OpcItemDto dto = new OpcItemDto(); |
|
|
OpcItemDto dto = new OpcItemDto(); |
|
|