|
@@ -669,12 +669,12 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if(incrementType.getCameraCapacity() != -1){
|
|
|
Long usedSpace = detailEntity.getUsedSpace();
|
|
|
if( scenePro != null && scenePro.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
|
|
|
- scenePro.setPayStatus(-2);
|
|
|
+ throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
|
|
|
}
|
|
|
if( scenePlus != null ){
|
|
|
ScenePlusExt ext = scenePlusExtService.getByPlusId(scenePlus.getId());
|
|
|
if(ext.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
|
|
|
- scenePlus.setPayStatus(-2);
|
|
|
+ throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
|
|
|
}
|
|
|
}
|
|
|
}
|