diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java index fc99676f7..54382fb50 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java @@ -154,6 +154,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService { */ @Override public String notificationAlarmInfo(PushAlarmInfoDTO dto) { + List alarmInfoList = new ArrayList<>(); String pileConnectorCode = dto.getPileConnectorCode(); String connectorStatus = dto.getConnectorStatus(); String alertCode = ""; @@ -193,6 +194,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService { .status(alertStatus) .build(); + alarmInfoList.add(alarmInfo); // 查询相关配置信息 ThirdPartySecretInfoVO suZhouSecretInfo = getSuZhouSecretInfo(); @@ -206,7 +208,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService { String url = urlAddress + "notification_alarmInfo"; JSONObject jsonObject = new JSONObject(); - jsonObject.put("AlarmInfos", alarmInfo); + jsonObject.put("AlarmInfos", alarmInfoList); String jsonString = JSON.toJSONString(jsonObject); // 获取令牌 String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);