|
@@ -22,6 +22,7 @@ import com.ozs.service.service.*;
|
|
import com.ozs.system.service.DataScoreUtil;
|
|
import com.ozs.system.service.DataScoreUtil;
|
|
import com.ozs.system.service.ISysDeptService;
|
|
import com.ozs.system.service.ISysDeptService;
|
|
import com.ozs.system.service.ISysDictDataService;
|
|
import com.ozs.system.service.ISysDictDataService;
|
|
|
|
+import com.ozs.web.core.util.CameraUtil;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -405,6 +406,17 @@ public class MsgAlarmController extends BaseController {
|
|
LambdaQueryWrapper<MsgWebPush> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<MsgWebPush> queryWrapper = new LambdaQueryWrapper<>();
|
|
queryWrapper.eq(MsgWebPush::getAlarmId, msgAlarm.getAlarmId());
|
|
queryWrapper.eq(MsgWebPush::getAlarmId, msgAlarm.getAlarmId());
|
|
boolean update1 = msgWebPushService.update(queryWrapper);
|
|
boolean update1 = msgWebPushService.update(queryWrapper);
|
|
|
|
+
|
|
|
|
+ //添加报警视频url
|
|
|
|
+ LambdaQueryWrapper<BaseCameraManagement> base = new LambdaQueryWrapper<>();
|
|
|
|
+ base.eq(BaseCameraManagement::getCameraCode, msgAlarm.getCameraCode());
|
|
|
|
+ BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(base);
|
|
|
|
+ String url = CameraUtil.historyPlayListStr(baseCameraManagement.getChannel(),
|
|
|
|
+ msgAlarm.getAlarmTime(),
|
|
|
|
+ msgAlarm.getReleasedTime(),
|
|
|
|
+ false);
|
|
|
|
+ msgAlarm.setReleasedUrl(url);
|
|
|
|
+ msgAlarmService.updateById(msgAlarm);
|
|
if (b && update && update1) {
|
|
if (b && update && update1) {
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
} else {
|
|
} else {
|