|
@@ -77,6 +77,8 @@ public class MsgAlarmController extends BaseController {
|
|
|
private BaseTerminalService baseTerminalService;
|
|
|
@Autowired
|
|
|
private CameraUtil cameraUtil;
|
|
|
+ @Resource
|
|
|
+ private MsgAlarmExtService msgAlarmExtService;
|
|
|
|
|
|
/**
|
|
|
* web更多消息-总数,已读数
|
|
@@ -208,6 +210,11 @@ public class MsgAlarmController extends BaseController {
|
|
|
String name = stringBuilder.toString();
|
|
|
o.setTrainNumName(name.substring(0, stringBuilder.lastIndexOf(",")));
|
|
|
}
|
|
|
+ List<MsgAlarmExt> list1 = msgAlarmExtService.list(new LambdaQueryWrapper<MsgAlarmExt>().eq(MsgAlarmExt::getAlarmId, o.getAlarmId()));
|
|
|
+ if (!ObjectUtils.isEmpty(list1)) {
|
|
|
+ List<String> collect = list1.stream().map(MsgAlarmExt::getAlarmAttPath).collect(Collectors.toList());
|
|
|
+ o.setImageUrls(collect);
|
|
|
+ }
|
|
|
return o;
|
|
|
}).collect(Collectors.toList());
|
|
|
page.setRecords(dto1);
|
|
@@ -378,7 +385,11 @@ public class MsgAlarmController extends BaseController {
|
|
|
if (msgAlarm.getAlarmType() == 2) {
|
|
|
msgAlarmResp.setAlarmUrl("https://rtmp01open.ys7.com:9188/v3/openlive/K38316196_1_1.flv?expire=1745409016&id=704781554165264384&t=477265ab4d36debe072836e0b16755ba50303c3b8eb165a628bc9c0a0328afb5&ev=100");
|
|
|
}else {
|
|
|
- msgAlarmResp.setAlarmUrl(cameraUtil.getPlayFlv(baseCameraManagement.getCameraCode(), "channel"));
|
|
|
+ if (StringUtils.isNotEmpty(baseCameraManagement.getCameraCode())) {
|
|
|
+ msgAlarmResp.setAlarmUrl(cameraUtil.getPlayFlv(baseCameraManagement.getCameraCode(), "channel"));
|
|
|
+ }else {
|
|
|
+ return success("该报警信息无匹配相机");
|
|
|
+ }
|
|
|
}
|
|
|
return AjaxResult.success(msgAlarmResp);
|
|
|
} else {
|