|
@@ -4,10 +4,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.fdkankan.common.constant.ErrorCode;
|
|
|
-import com.fdkankan.common.constant.PayStatus;
|
|
|
-import com.fdkankan.common.constant.SceneStatus;
|
|
|
-import com.fdkankan.common.constant.SpaceType;
|
|
|
+import com.fdkankan.common.constant.*;
|
|
|
import com.fdkankan.contro.entity.CameraDetail;
|
|
|
import com.fdkankan.contro.entity.ScenePlus;
|
|
|
import com.fdkankan.contro.entity.ScenePlusExt;
|
|
@@ -67,7 +64,11 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
if(spaceType.equals(SpaceType.SP.code())){
|
|
|
space = -1L;
|
|
|
}
|
|
|
- cameraDetailService.updateCameraDetailByCameraIdAndSpace(scenePlus.getCameraId(), space);
|
|
|
+ if(scenePlus.getSceneSource() == SceneSource.BM.code()
|
|
|
+ || scenePlus.getSceneSource() == SceneSource.ZT.code()
|
|
|
+ || (spaceType.equals(SpaceType.SP.code()))){
|
|
|
+ cameraDetailService.updateCameraDetailByCameraIdAndSpace(scenePlus.getCameraId(), space);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
scenePlusExt.setSpace(Long.parseLong("0"));
|