|
@@ -15,6 +15,7 @@ import com.fdkankan.common.constant.SceneVersionType;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
+import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
import com.fdkankan.ucenter.common.OssPath;
|
|
|
import com.fdkankan.ucenter.common.PageInfo;
|
|
|
import com.fdkankan.ucenter.common.Result;
|
|
@@ -264,7 +265,7 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
scenePlus.setSceneStatus(-2);
|
|
|
this.updateById(scenePlus);
|
|
|
sceneCopyLogService.saveByNum(oldNum,newNum,scenePlus.getUserId());
|
|
|
-
|
|
|
+ sendMqForAiPano(newNum);
|
|
|
// Boolean checkSpace = cameraDetailService.checkSpace(cameraDetail.getCameraId(), plusExt.getSpace());
|
|
|
// if(!checkSpace){
|
|
|
// sceneProService.lockOrUnLockScenes(Arrays.asList(scenePlus.getId()),-2);
|
|
@@ -285,6 +286,14 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
return scenePlus.getId();
|
|
|
}
|
|
|
|
|
|
+ @Autowired
|
|
|
+ RabbitMqProducer rabbitMqProducer;
|
|
|
+ private void sendMqForAiPano(String num){
|
|
|
+ Map<String, String> map = new HashMap<>();
|
|
|
+ map.put("num", num);
|
|
|
+ rabbitMqProducer.sendByWorkQueue("detect-queue-pano", map);
|
|
|
+ }
|
|
|
+
|
|
|
private void copyOssAndNas(String oldNum,String newNum){
|
|
|
// 拷贝场景编辑资源
|
|
|
String oldEditPath = String.format(SceneResourcePath.EDIT_PATH_v4, oldNum);
|