|
@@ -133,7 +133,8 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
if(!oldCameraDetail.getType().equals(cameraDetail.getType())){
|
|
if(!oldCameraDetail.getType().equals(cameraDetail.getType())){
|
|
throw new BusinessException(ResultCode.CAMERA_TYPE_NOT_ERROR);
|
|
throw new BusinessException(ResultCode.CAMERA_TYPE_NOT_ERROR);
|
|
}
|
|
}
|
|
- if(!oldCameraDetail.getAgentId().equals(cameraDetail.getAgentId()) ){
|
|
|
|
|
|
+ if(oldCameraDetail.getAgentId() == null || cameraDetail.getAgentId() == null ||
|
|
|
|
+ !oldCameraDetail.getAgentId().equals(cameraDetail.getAgentId()) ){
|
|
throw new BusinessException(ResultCode.CAMERA_SN_ERROR);
|
|
throw new BusinessException(ResultCode.CAMERA_SN_ERROR);
|
|
}
|
|
}
|
|
|
|
|