|
@@ -131,7 +131,7 @@ public class TmColdStorageServiceImpl extends ServiceImpl<ITmColdStorageMapper,
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public void restore(SceneParam param) {
|
|
|
- if(param.getNumList().isEmpty() || StringUtils.isBlank(param.getWifiName())){
|
|
|
+ if(param.getNumList().isEmpty() || param.getCameraId() == null){
|
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
}
|
|
|
for (String num : param.getNumList()) {
|
|
@@ -146,7 +146,7 @@ public class TmColdStorageServiceImpl extends ServiceImpl<ITmColdStorageMapper,
|
|
|
}
|
|
|
Long cameraId = scenePro == null ? scenePlus.getCameraId() : scenePro.getCameraId();
|
|
|
CameraDetail oldCameraDetail = cameraDetailService.getByCameraId(cameraId);
|
|
|
- CameraDetail cameraDetail = cameraDetailService.getByWiFiName(param.getWifiName());
|
|
|
+ CameraDetail cameraDetail = cameraDetailService.getByCameraId(param.getCameraId());
|
|
|
if(!oldCameraDetail.getType().equals(cameraDetail.getType())){
|
|
|
throw new BusinessException(ResultCode.RESTORE_ERROR);
|
|
|
}
|