Pārlūkot izejas kodu

深时相机迁移,添加传参userId,和phone

lyhzzz 2 gadi atpakaļ
vecāks
revīzija
3b35b7886d

+ 1 - 1
src/main/java/com/fdkankan/manage/httpClient/param/LaserSceneMoveParam.java

@@ -9,5 +9,5 @@ public class LaserSceneMoveParam {
     private String sceneCode;
     private String snCode;
     private String toSnCode;
-    private Integer userId;
+    private Long userId;
 }

+ 8 - 1
src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

@@ -152,11 +152,18 @@ public class LaserService {
         }
     }
 
-    public void move(String num, String snCode, String toSnCode) {
+    public void move(String num, String snCode, String toSnCode,Long userId) {
         LaserSceneMoveParam param = new LaserSceneMoveParam();
         param.setSceneCode(num);
         param.setSnCode(snCode);
         param.setToSnCode(toSnCode);
+        param.setUserId(userId);
+        if(userId != null){
+            User user = userService.getById(userId);
+            if(user != null){
+                param.setPhone(user.getUserName());
+            }
+        }
         laserClient.migrate(param);
     }
 

+ 1 - 1
src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

@@ -429,7 +429,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
             folderSceneService.delBySceneId(scenePlus.getId());
         }
         if(cameraDetail.getType() == 10){       //深时场景
-            laserService.move(param.getNum(),oldCamera.getSnCode(),camera.getSnCode());
+            laserService.move(param.getNum(),oldCamera.getSnCode(),camera.getSnCode(),cameraDetail.getUserId());
         }
 
     }