|
@@ -133,6 +133,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if(!oldCameraDetail.getType().equals(cameraDetail.getType())){
|
|
|
throw new BusinessException(ResultCode.CAMERA_TYPE_NOT_ERROR);
|
|
|
}
|
|
|
+ if(!cameraDetail.getAgentId().equals(oldCameraDetail.getAgentId()) ){
|
|
|
+ throw new BusinessException(ResultCode.CAMERA_SN_ERROR);
|
|
|
+ }
|
|
|
|
|
|
Long oldUseSpace = oldCameraDetail.getUsedSpace() - space < 0 ? 0 : oldCameraDetail.getUsedSpace() - space;
|
|
|
oldCameraDetail.setUsedSpace(oldUseSpace);
|