lyhzzz 5 月之前
父節點
當前提交
47d2bbcf09
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

+ 2 - 2
src/main/java/com/fdkankan/ucenter/service/impl/SceneCommonService.java

@@ -287,9 +287,9 @@ public class SceneCommonService {
         CameraType cameraType = cameraTypeService.getByCameraType(cameraDetail.getType());
 
         Boolean checkSpace = cameraDetailService.checkSpace(cameraDetail,cameraType);
-        if(!checkSpace && location != 7){
+        if(!checkSpace && (location == null || location != 7)){
             List<String> panoNumList = new ArrayList<>();
-            if(location != null && location == 7){
+            if(cameraDetail.getCompanyId()!= null && cameraDetail.getCompanyId() == 26L){
                 panoNumList.add(scenePlus.getNum());
             }
             sceneProService.lockOrUnLockScenes(new ArrayList<>(), Arrays.asList(newNum),-2,cameraType.getIsLaser(),panoNumList);