|
@@ -148,6 +148,10 @@ public class CompanyServiceImpl extends ServiceImpl<ICompanyMapper, Company> imp
|
|
if(ObjectUtils.isEmpty(instance)){
|
|
if(ObjectUtils.isEmpty(instance)){
|
|
throw new BusinessException(ResultCode.CAMERA_NOT_EXIST);
|
|
throw new BusinessException(ResultCode.CAMERA_NOT_EXIST);
|
|
}
|
|
}
|
|
|
|
+ CameraDetail cameraDetail = cameraDetailService.getByCameraId(instance.getId());
|
|
|
|
+ if(cameraDetail.getCompanyId()!= null || cameraDetail.getUserId() != null){
|
|
|
|
+ throw new BusinessException(ResultCode.CAMERA_NOT_EXIST);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|