Commit d711096e by huangjy

fix: 误报问题

parent a19d172e
...@@ -111,7 +111,7 @@ public class IotDevicePropertiesOperateService extends IotCommonService { ...@@ -111,7 +111,7 @@ public class IotDevicePropertiesOperateService extends IotCommonService {
map.put("misinformationNotify",reqMap); map.put("misinformationNotify",reqMap);
HttpRequest request = buildRequest(url, JSON.toJSONString(map)); HttpRequest request = buildRequest(url, JSON.toJSONString(map));
try { try {
ResponseMessage responseMessage = sendPut(url, request); ResponseMessage responseMessage = sendPost(url, request);
log.info("发送误报通知到设备返回信息:{}", responseMessage.getMessage()); log.info("发送误报通知到设备返回信息:{}", responseMessage.getMessage());
if (responseMessage.getStatus() != 200) { if (responseMessage.getStatus() != 200) {
String errorMsg = responseMessage.getMessage(); String errorMsg = responseMessage.getMessage();
......
...@@ -580,7 +580,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe ...@@ -580,7 +580,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
platAlarmRecord.setStatus(CommonEnum.YES.getValue()); platAlarmRecord.setStatus(CommonEnum.YES.getValue());
platAlarmRecord.setDealDate(LocalDateTime.now()); platAlarmRecord.setDealDate(LocalDateTime.now());
CommonUserVO user = CommonUserUtil.getUser(); CommonUserVO user = CommonUserUtil.getUser();
platAlarmRecord.setDealUser(user.getName()); //platAlarmRecord.setDealUser(user.getName());
updateById(platAlarmRecord); updateById(platAlarmRecord);
String deviceId = platAlarmRecord.getDeviceId(); String deviceId = platAlarmRecord.getDeviceId();
...@@ -589,6 +589,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe ...@@ -589,6 +589,7 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
throw new RuntimeException("找不到告警关联的设备,设备已解绑" + deviceId); throw new RuntimeException("找不到告警关联的设备,设备已解绑" + deviceId);
} }
Timestamp timestamp = Timestamp.valueOf(platAlarmRecord.getCreateDate()); Timestamp timestamp = Timestamp.valueOf(platAlarmRecord.getCreateDate());
log.info("开始想设备发送误报通知");
iotDevicePropertiesOperateService.deviceFunctionAttr(platDevice.getOriDeviceId(),timestamp.getTime()); iotDevicePropertiesOperateService.deviceFunctionAttr(platDevice.getOriDeviceId(),timestamp.getTime());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment