浏览代码

合并测试环境最新代码

lyhzzz 1 年之前
父节点
当前提交
c0e2e5c525
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/main/java/com/fdkankan/ucenter/service/impl/AppSceneService.java

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

@@ -251,7 +251,7 @@ public class AppSceneService {
 
     }
 
-    public void deleteForCameraName(Long cameraId, String sceneNum) {
+    public void deleteForCameraName(Long cameraId, String sceneNum,Long userId) {
         if(cameraId == null || StringUtils.isEmpty(sceneNum)){
             throw new BusinessException(LoginConstant.FAILURE_CODE_3001,LoginConstant.FAILURE_MSG_3001);
         }
@@ -280,10 +280,6 @@ public class AppSceneService {
         if(scenePlus!=null){
             plusList.add(scenePlus);
         }
-        sceneProService.deleteByList(proList,plusList);
-    }
-
-    public void deleteScene(String sceneNum) {
-        sceneProService.delete(sceneNum);
+        sceneProService.deleteByList(proList,plusList,userId);
     }
 }