Commit dfbfaaba by 谢海旭

【ID1016897】 bug修复

1 parent 3406c727
......@@ -559,7 +559,6 @@ public class RiskAssessmentService {
});
// 查询防拆警情:断电、光感、翻转
// TODO 接口测试,生效中的警情,只有开始时间没有结束时间
log.info("查询防拆警情 请求参数:{}", JSONUtil.toJsonStr(snList));
List<CommonAlarmDto> tearDownAlarmList = remoteAlarmService.selectLatestAlarmOfEachType(snList);
log.info("查询防拆警情 请求结果:{}", JSONUtil.toJsonStr(tearDownAlarmList));
......@@ -687,6 +686,11 @@ public class RiskAssessmentService {
private void getOffLinePoint(List<String> snList, List<AlarmTimeLinePointVo> alarmInfoList, Map<String, String> snDeviceNameMap) {
List<DeviceLocation> deviceLocationList = deviceLocationMapper.findLocationListBySnList(snList);
if (CollectionUtils.isEmpty(deviceLocationList)) {
AlarmTimeLinePointVo pointVo = new AlarmTimeLinePointVo();
pointVo.setAlarmLevel(3);
pointVo.setAlarmType("离线报警");
pointVo.setDevice(snDeviceNameMap.get(snList.get(0)));
alarmInfoList.add(pointVo);
return;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!