|
@@ -701,15 +701,15 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
if(!canSpace){
|
|
|
throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
|
|
|
}
|
|
|
- copyScene(sceneNum,scenePro,scenePlus);
|
|
|
+ copyScene(sceneNum,null,scenePro,scenePlus);
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public synchronized void copySceneNoCheck(String sceneNum) throws Exception {
|
|
|
+ public synchronized void copySceneNoCheck(String sceneNum,Integer sourceId) throws Exception {
|
|
|
ScenePro scenePro = this.getByNum(sceneNum);
|
|
|
ScenePlus scenePlus = scenePlusService.getByNum(sceneNum);
|
|
|
- copyScene(sceneNum,scenePro,scenePlus);
|
|
|
+ copyScene(sceneNum,sourceId,scenePro,scenePlus);
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@@ -718,13 +718,14 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Value("${queue.scene.copy:ucenter-copy-scene}")
|
|
|
private String copySceneQueue;
|
|
|
|
|
|
- private void copyScene(String oldNum,ScenePro scenePro,ScenePlus scenePlus) throws Exception {
|
|
|
+ private void copyScene(String oldNum,Integer sourceId,ScenePro scenePro,ScenePlus scenePlus) throws Exception {
|
|
|
String newNum = scene3dNumService.generateSceneNum(oldNum);
|
|
|
Long userId = scenePro == null ? scenePlus.getUserId() :scenePro.getUserId();
|
|
|
sceneCopyLogService.saveByNum(oldNum,newNum,userId);
|
|
|
- HashMap<String,String > map = new HashMap<>();
|
|
|
+ HashMap<String,Object > map = new HashMap<>();
|
|
|
map.put("oldNum",oldNum);
|
|
|
map.put("newNum",newNum);
|
|
|
+ map.put("sourceId",sourceId);
|
|
|
rabbitMqProducer.sendByWorkQueue(copySceneQueue,map);
|
|
|
}
|
|
|
|