|
@@ -279,6 +279,23 @@ public class LaserService {
|
|
|
rabbitMqProducer.sendByWorkQueue(MqQueueUtil.laserMoveQueue,map);
|
|
|
//laserClient.migrate(param);
|
|
|
}
|
|
|
+ public void moveWenBao(String num, String snCode, String toSnCode,Long userId,String newDataSource) {
|
|
|
+ LaserSceneMoveParam param = new LaserSceneMoveParam();
|
|
|
+ param.setSceneCode(num);
|
|
|
+ //param.setSnCode(snCode);
|
|
|
+ param.setToSnCode(toSnCode);
|
|
|
+ param.setUserId(userId);
|
|
|
+ param.setDataSource(newDataSource+"_laserData/laserData");
|
|
|
+ if(userId != null){
|
|
|
+ User user = userService.getById(userId);
|
|
|
+ if(user != null){
|
|
|
+ param.setPhone(user.getUserName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Map<String, Object> map = BeanUtil.beanToMap(param);
|
|
|
+ rabbitMqProducer.sendByWorkQueue(MqQueueUtil.laserMoveWenBaoQueue,map);
|
|
|
+ //laserClient.migrate(param);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
public void copy(String snCode, String createTime, String newNum, Integer status, String sceneKey, String sceneName, Long userId){
|