From d56eb60dfc4cdc12c735b7d5dcdc2b5b6f10942e Mon Sep 17 00:00:00 2001 From: pangshenghao Date: Fri, 9 Jun 2023 17:37:29 +0800 Subject: [PATCH] fix --- .../src/main/java/org/nl/modules/quartz/task/ToAgvDevice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()));