|
|
@ -110,6 +110,7 @@ public class PointUpdateUtil { |
|
|
|
devices.add(device); |
|
|
|
// 向ACS查询点位状态
|
|
|
|
JSONObject deviceStatus = wmsToAcsService.getPointStatus(devices); |
|
|
|
if (ObjectUtil.isEmpty(deviceStatus.get("data"))) return null; |
|
|
|
JSONArray statusJSONArray = deviceStatus.getJSONArray("data"); |
|
|
|
if (ObjectUtil.isEmpty(statusJSONArray)) return DeviceStatusEnum.SHUTDOWN.getCode(); |
|
|
|
JSONObject deviceJson = statusJSONArray.getJSONObject(0); |
|
|
|