|
@@ -15,10 +15,12 @@ import com.ozs.entity.*;
|
|
|
import com.ozs.entity.vo.BaseCameraManagementHomeVo;
|
|
|
import com.ozs.entity.vo.BaseCameraManagementVo;
|
|
|
import com.ozs.entity.vo.BaseCameraManagementVos;
|
|
|
+import com.ozs.entity.vo.BaseVehicleTerminalDto;
|
|
|
import com.ozs.mapper.*;
|
|
|
import com.ozs.service.BaseCameraManagementService;
|
|
|
import com.ozs.service.BaseRailwayManagementService;
|
|
|
import com.ozs.service.BaseUserService;
|
|
|
+import com.ozs.utils.CameraUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
@@ -398,14 +400,34 @@ public class BaseCameraManagementServiceImpl extends ServiceImpl<BaseCameraManag
|
|
|
camera.le(BaseCameraManagement::getBeginMile, msgAlarm.getAlarmMile());
|
|
|
camera.eq(BaseCameraManagement::getLineDir, msgAlarm.getLineDir());
|
|
|
camera.eq(BaseCameraManagement::getRailwayCode, msgAlarm.getRailwayCode());
|
|
|
- camera.eq(BaseCameraManagement::getOnline,2);
|
|
|
- camera.eq(BaseCameraManagement::getEnableOrNot,1);
|
|
|
+ camera.eq(BaseCameraManagement::getOnline, 2);
|
|
|
+ camera.eq(BaseCameraManagement::getEnableOrNot, 1);
|
|
|
List<BaseCameraManagement> baseCameraManagementList = this.list(camera);
|
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagementList)){
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagementList)) {
|
|
|
list.addAll(baseCameraManagementList);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<String> videoCaptureUrl(BaseVehicleTerminalDto baseVehicleTerminalDto) {
|
|
|
+ List<String> urlList = new ArrayList<>();
|
|
|
+ LambdaQueryWrapper<BaseCameraManagement> camera = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
+ camera.ge(BaseCameraManagement::getEndMile, baseVehicleTerminalDto.getTravelMile());
|
|
|
+ camera.eq(BaseCameraManagement::getLineDir, baseVehicleTerminalDto.getLineDir());
|
|
|
+ camera.eq(BaseCameraManagement::getRailwayCode, baseVehicleTerminalDto.getRailwayCode());
|
|
|
+ camera.eq(BaseCameraManagement::getOnline, 2);
|
|
|
+ camera.eq(BaseCameraManagement::getEnableOrNot, 1);
|
|
|
+ List<BaseCameraManagement> baseCameraManagementList = this.list(camera);
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagementList)) {
|
|
|
+ List<BaseCameraManagement> list = new ArrayList<>(baseCameraManagementList);
|
|
|
+ for (BaseCameraManagement baseCameraManagement : list) {
|
|
|
+ String flv = CameraUtil.getPlayFlv(baseCameraManagement.getCameraCode(), baseCameraManagement.getChannel());
|
|
|
+ urlList.add(flv);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return urlList;
|
|
|
+ }
|
|
|
}
|