diff --git a/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java b/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java index 1488bbf..9109ca4 100644 --- a/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java +++ b/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java @@ -29,13 +29,13 @@ public class ToAgvDevice { DeviceAppService deviceAppService; public void run() throws Exception { JSONArray agv_rows = new JSONArray(); - JSONObject row = new JSONObject(); AgvNdcOneDeviceDriver agvNdcOneDeviceDriver; try { List deviceList = deviceAppService.findDeviceByType(DeviceType.agv); for(Device device:deviceList) { if (device.getDeviceDriver() instanceof AgvNdcOneDeviceDriver) { + JSONObject row = new JSONObject(); agvNdcOneDeviceDriver = (AgvNdcOneDeviceDriver) device.getDeviceDriver(); row.put("device_code", String.valueOf(device.getDevice_code())); row.put("energyLevel", String.valueOf(agvNdcOneDeviceDriver.getElectric_qty()));