|
@@ -472,15 +472,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if((scenePro == null || scenePro.getCameraId() == null ) && (scenePlus== null || scenePlus.getCameraId() == null)){
|
|
|
throw new BusinessException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
|
|
|
}
|
|
|
- Long cameraId = scenePro == null ? scenePlus.getCameraId() : scenePro.getCameraId();
|
|
|
- Camera camera = cameraService.getById(cameraId);
|
|
|
- if(camera == null){
|
|
|
- throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
|
- }
|
|
|
- CameraDetail detailEntity = cameraDetailService.getByCameraId(cameraId);
|
|
|
- if(detailEntity == null){
|
|
|
- throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
|
- }
|
|
|
+// Long cameraId = scenePro == null ? scenePlus.getCameraId() : scenePro.getCameraId();
|
|
|
+// Camera camera = cameraService.getById(cameraId);
|
|
|
+// if(camera == null){
|
|
|
+// throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
|
+// }
|
|
|
+// CameraDetail detailEntity = cameraDetailService.getByCameraId(cameraId);
|
|
|
+// if(detailEntity == null){
|
|
|
+// throw new BusinessException(CameraConstant.FAILURE_CODE_6029, CameraConstant.FAILURE_MSG_6029);
|
|
|
+// }
|
|
|
// if(detailEntity.getType() == 10 || detailEntity.getType() == 11){
|
|
|
// throw new BusinessException(ResultCode.SS_NO_COPY);
|
|
|
// }
|