package com.fdkankan.scene.controller;

import com.fdkankan.common.controller.BaseController;
import com.fdkankan.common.response.ResultData;
import com.fdkankan.scene.service.ISceneProService;
import com.fdkankan.scene.vo.SceneEditVO;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

/**
 * 场景编辑管理
 */
@Log4j2
@RestController
@RequestMapping("/api/scene/edit")
public class SceneEditController extends BaseController {

    @Autowired
    private ISceneProService sceneProService;

    @Value("${main.url}")
    private String mainUrl;

    /**
     * 保存编辑的数据并生效
     * @return
     */
    @PostMapping(value = "/saveSceneInfo")
    public ResultData saveSceneInfo(@RequestBody SceneEditVO param) throws Exception {
        return sceneProService.saveSceneInfo(param);
    }

//    /**
//     * 单独保存tourList
//     * @return
//     */
//    @ApiOperation("单独保存tourList")
//    @CheckCurrentUser(description = "单独保存tourList")
//    @RequestMapping(value = "/saveTourList", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "tourList", value = "tourList", dataType = "String"),
//            @ApiImplicitParam(name = "screencapLen", value = "screenCapLen", dataType = "String")})
//    public Result saveTourList(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setTourList(request.getParameter("tourList"));
//        base.setScreencapLen(request.getParameter("screencapLen"));
//        return sceneProService.saveTourList(base);
//    }
//
//    /**
//     * 删除导览
//     * @return
//     */
//    @ApiOperation("删除导览")
//    @CheckCurrentUser(description = "删除导览")
//    @RequestMapping(value = "/deleteScreencap", method = RequestMethod.POST)
//    @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")
//    public Result deleteScreencap(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        return sceneProService.deleteScreencap(base);
//    }
//
//    /**
//     * 删除录屏音频文件
//     * @return
//     */
//    @ApiOperation("删除录屏音频文件")
//    @CheckCurrentUser(description = "删除录屏音频文件")
//    @RequestMapping(value = "/deleteScreencapVoiceNew", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "sound为sound录音，其余普通录音", dataType = "String")})
//    public Result deleteScreencapVoiceNew(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setType(request.getParameter("type"));
//        return sceneProService.deleteScreencapVoice(base);
//    }
//
//    /**
//     * 上传音频
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传音频")
//    @CheckCurrentUser(description = "上传音频")
//    @RequestMapping(value = "/uploadScreencapVoiceNew", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "sound为sound录音，其余普通录音", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件名", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadScreencapVoice(HttpServletRequest request, HttpServletResponse response, @RequestParam("file")  MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String type = request.getParameter("type");
//        String fileName = request.getParameter("fileName");
//        String length = request.getParameter("length");
//        //替换视频，1为替换，0或没值为不替换
//        String replace = request.getParameter("replace");
//
//        return sceneProService.uploadScreencapVoiceNew(sceneNum, type, fileName, file, length, replace);
//    }
//
//    /**
//     * 上传音频
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传音频")
//    @CheckCurrentUser(description = "上传音频")
//    @RequestMapping(value = "/uploadScreencapVoiceNewV3", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "sound为sound录音，其余普通录音", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件名", dataType = "String"),
//            @ApiImplicitParam(name = "length", value = "当前视频大小", dataType = "String"),
//            @ApiImplicitParam(name = "replace", value = "1为替换，0或没值为不替换", dataType = "String"),
//            @ApiImplicitParam(name = "times", value = "所有房间的每个视频长度", dataType = "String"),
//            @ApiImplicitParam(name = "index", value = "当前视频的序号", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadScreencapVoiceV3(HttpServletRequest request, HttpServletResponse response, @RequestParam("file")  MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String type = request.getParameter("type");
//        String fileName = request.getParameter("fileName");
//        String length = request.getParameter("length");
//        //替换视频，1为替换，0或没值为不替换
//        String replace = request.getParameter("replace");
//
//        String times = request.getParameter("times");
//        String index = request.getParameter("index");
//        return sceneProService.uploadScreencapVoiceNewV3(sceneNum, type, fileName, file, length, replace, times, index);
//    }
//
//    /**
//     * 删除某部分音频
//     * @return
//     */
//    @ApiOperation("删除某部分音频")
//    @CheckCurrentUser(description = "删除某部分音频")
//    @RequestMapping(value = "/deleteScreencapVoicePart", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "times", value = "文件时间集合", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件名", dataType = "String"),
//            @ApiImplicitParam(name = "index", value = "文件下标", dataType = "MultipartFile")})
//    public Result deleteScreencapVoicePart(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String times = request.getParameter("times");
//        String index = request.getParameter("index");
//        return sceneProService.deleteScreencapVoicePart(sceneNum, fileName, times, index);
//    }
//
//    /**
//     * 获取录屏的文件名称
//     * @return
//     */
//    @ApiOperation("获取录屏的文件名称")
//    @CheckCurrentUser(description = "获取录屏的文件名称")
//    @RequestMapping(value = "/getScreencapVoice", method = RequestMethod.POST)
//    @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")
//    public Result getScreencapVoice(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        return sceneProService.getScreencapVoice(base);
//    }
//
//    /**
//     * 保存初始页面
//     * @return
//     */
//    @ApiOperation("保存初始页面")
//    @CheckCurrentUser(description = "保存初始页面")
//    @RequestMapping(value = "/saveInitialPage", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "initialPoint", value = "初始封面数据", dataType = "String")})
//    public Result saveInitialPage(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setInitialPoint(request.getParameter("initialPoint"));
//        return sceneProService.saveInitialPage(base);
//    }
//
//    /**
//     * 保存背景音乐(只是编辑页面生效)
//     * @return
//     */
//    @ApiOperation("保存背景音乐(只是编辑页面生效)")
//    @CheckCurrentUser(description = "保存背景音乐(只是编辑页面生效)")
//    @RequestMapping(value = "/saveBackgroundMusic", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "musicName", value = "musicName", dataType = "String")})
//    public Result saveBackgroundMusic(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setMusicName(request.getParameter("musicName"));
//        return sceneProService.saveBackgroundMusic(base);
//    }
//
//    /**
//     * 保存地面logo
//     * @return
//     */
//    @ApiOperation("保存地面logo")
//    @CheckCurrentUser(description = "保存地面logo")
//    @RequestMapping(value = "/saveFloorLogo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "size", value = "大小", dataType = "String"),
//            @ApiImplicitParam(name = "logoType", value = "logo类型", dataType = "String")})
//    public Result saveFloorLogo(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setSize(request.getParameter("size"));
//        base.setLogoType(request.getParameter("logoType"));
//        return sceneProService.saveFloorLogo(base);
//    }
//
//    /**
//     * 保存场景热点
//     * @return
//     */
//    @ApiOperation("保存场景热点")
//    @CheckCurrentUser(description = "保存场景热点")
//    @RequestMapping(value = "/saveHot", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "hotData", value = "热点数据", dataType = "String"),
//            @ApiImplicitParam(name = "sid", value = "sid", dataType = "String"),
//            @ApiImplicitParam(name = "capData", value = "capData", dataType = "String"),
//            @ApiImplicitParam(name = "frameData", value = "frameData", dataType = "String"),
//            @ApiImplicitParam(name = "playData", value = "playData", dataType = "String"),
//            @ApiImplicitParam(name = "screencapThumb", value = "screencapThumb", dataType = "String"),
//            @ApiImplicitParam(name = "styleName", value = "需要删除的自定义热点，多个逗号分割", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "0表示修改，-1表示删除，1表示添加", dataType = "String")})
//    public Result saveHot(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setHotData(request.getParameter("hotData"));
//        base.setSid(request.getParameter("sid"));
//        base.setType(request.getParameter("type"));
//        base.setCapData(request.getParameter("capData"));
//        base.setFrameData(request.getParameter("frameData"));
//        base.setPlayData(request.getParameter("playData"));
//        base.setScreencapThumb(request.getParameter("screencapThumb"));
//        base.setStyleName(request.getParameter("styleName"));
//        return sceneProService.saveHot(base);
//    }
//
//    /**
//     * 保存场景热点
//     * @return
//     */
//    @ApiOperation("保存场景热点")
//    @CheckCurrentUser(description = "保存场景热点")
//    @RequestMapping(value = "/saveShopHot", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "hotData", value = "热点数据", dataType = "String"),
//            @ApiImplicitParam(name = "sid", value = "sid", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "0表示修改，-1表示删除，1表示添加", dataType = "String")})
//    public Result saveShopHot(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setHotData(request.getParameter("hotData"));
//        base.setSid(request.getParameter("sid"));
//        base.setType(request.getParameter("type"));
//        return sceneProService.saveShopHot(base);
//    }
//
//    /**
//     * 保存场景热点
//     * @return
//     */
//    @ApiOperation("保存场景热点")
//    @CheckCurrentUser(description = "保存场景热点")
//    @RequestMapping(value = "/saveOverlay", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "overlayData", value = "overlay数据", dataType = "String"),
//            @ApiImplicitParam(name = "sid", value = "sid", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "0表示修改，-1表示删除，1表示添加", dataType = "String")})
//    public Result saveOverlay(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setOverlayData(request.getParameter("overlayData"));
//        base.setSid(request.getParameter("sid"));
//        base.setType(request.getParameter("type"));
//        return sceneProService.saveOverlay(base);
//    }
//
//    /**
//     * 保存导览静态数据
//     * @return
//     */
//    @ApiOperation("保存导览静态数据")
//    @CheckCurrentUser(description = "保存导览静态数据")
//    @RequestMapping(value = "/saveScreencapData", method = RequestMethod.POST)
//    public Result saveScreencapData(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setScreencapVoiceType(request.getParameter("screencapVoiceType"));
//        base.setCapData(request.getParameter("capData"));
//        base.setFrameData(request.getParameter("frameData"));
//        base.setPlayData(request.getParameter("playData"));
//        base.setScreencapThumb(request.getParameter("screencapThumb"));
//        base.setRecordType(request.getParameter("recordType"));
//        return sceneProService.saveScreencapData(base);
//    }
//
//    /**
//     * 修改场景秘钥
//     * @return
//     */
//    @ApiOperation("修改场景秘钥")
//    @CheckCurrentUser(description = "修改场景秘钥")
//    @RequestMapping(value = "/saveSceneKey", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "sceneKey", value = "场景秘钥", dataType = "String")})
//    public Result saveSceneKey(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setSceneKey(request.getParameter("sceneKey"));
//        return sceneProService.saveSceneKey(base);
//    }
//
//    /**
//     * 增加热点媒体文件
//     * @return
//     */
//    @ApiOperation("增加热点媒体文件")
//    @CheckCurrentUser(description = "增加热点媒体文件")
//    @RequestMapping(value = "/saveScreencapFile", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "index", value = "index", dataType = "String"),
//            @ApiImplicitParam(name = "camerasData", value = "数据", dataType = "String")})
//    public Result saveScreencapFile(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setIndex(request.getParameter("index"));
//        base.setCamerasData(request.getParameter("camerasData"));
//        return sceneProService.saveScreencapFile(base);
//    }
//
//    /**
//     * 上传场景的热点媒体文件
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传场景的热点媒体文件")
//    @CheckCurrentUser(description = "上传场景的热点媒体文件")
//    @RequestMapping(value = "/uploadHotMedia", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadHotMedia(HttpServletRequest request, HttpServletResponse response, @RequestParam("file")  MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String sid = request.getParameter("sid");
//        return sceneProService.uploadHotMedia(sceneNum, file, sid);
//    }
//
//    /**
//     * 上传场景的Overlay媒体文件
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传场景的Overlay媒体文件")
//    @CheckCurrentUser(description = "上传场景的Overlay媒体文件")
//    @RequestMapping(value = "/uploadOverlayMedia", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadOverlayMedia(HttpServletRequest request, HttpServletResponse response, @RequestParam("file")  MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String sid = request.getParameter("sid");
//        return sceneProService.uploadOverlayMedia(sceneNum, file, sid);
//    }
//
//    /**
//     * 增加热点媒体文件
//     * @return
//     */
//    @ApiOperation("增加热点媒体文件")
//    @CheckCurrentUser(description = "增加热点媒体文件")
//    @RequestMapping(value = "/addHotMediaInfo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "name", value = "name", dataType = "String"),
//            @ApiImplicitParam(name = "info", value = "媒体文件数据", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "0表示修改，-1表示删除，1表示添加", dataType = "String")})
//    public Result addHotMediaInfo(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setName(request.getParameter("name"));
//        base.setInfo(request.getParameter("info"));
//        base.setType(request.getParameter("type"));
//        return sceneProService.addHotMediaInfo(base);
//    }
//
    /**
     * 保存漫游可行
     * @return
     */
    @RequestMapping(value = "/saveLinkPano", method = RequestMethod.POST)
    public ResultData saveLinkPano(@RequestBody SceneEditVO params) throws Exception {
        return sceneProService.saveLinkPano(params);
    }

//    /**
//     * 保存热点可见性的数据
//     * @return
//     */
//    @ApiOperation("保存热点可见性的数据")
//    @CheckCurrentUser(description = "保存热点可见性的数据")
//    @RequestMapping(value = "/saveHotVisible", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "data", value = "数据", dataType = "String")})
//    public Result saveHotVisible(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setData(request.getParameter("data"));
//        return sceneProService.saveHotVisible(base);
//    }
//
//
//    /**
//     * 获取从浏览器的音频
//     */
//    @ApiOperation("获取从浏览器的音频")
//    @CheckCurrentUser(description = "获取从浏览器的音频")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件流", dataType = "String")
//    })
//    @RequestMapping(value = "/getRecordAudioFromBrowser", method = RequestMethod.POST)
//    public Result getRecordAudioFromBrowser(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        if(StringUtils.isEmpty(sceneNum) || file.isEmpty() || file.getSize() <= 0){
//            throw new BaseRuntimeException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
//        }
//
//        SceneProEntity sceneProEntity = sceneProService.findBySceneNum(sceneNum);
//        if(sceneProEntity == null){
//            throw new BaseRuntimeException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
//        }
//
//        //文件上传的位置可以自定义
//        log.info("开始上传文件");
//        String path = ConstantFilePath.SCENE_PATH+"voice"+File.separator+"voice"+sceneNum;
//        File targetFile = new File(path);
//        if (!targetFile.exists()) {
//            targetFile.mkdirs();
//        }
//        String fileName = file.getOriginalFilename();
//        targetFile = new File(path + File.separator + fileName);
//        // 保存
//        synchronized(this){
//            file.transferTo(targetFile);
//        }
//        return Result.success();
//    }
//
//    /**
//     * 新增画墙重建模型（钟文）
//     */
//    @ApiOperation("画墙重建模型")
//    @CheckCurrentUser(description = "画墙重建模型")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "floor", value = "画墙重算需要的floor.json和floorplan.json的数据", dataType = "String"),
//            @ApiImplicitParam(name = "sceneData", value = "scene.json的数据", dataType = "String")
//    })
//    @RequestMapping(value = "/uploadFloorJson", method = RequestMethod.POST)
//    public Result uploadFloorJson(HttpServletRequest request, HttpServletResponse response) throws Exception{
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setFloor(request.getParameter("floor"));
//        base.setWebFloor(request.getParameter("webFloor"));
//        base.setSceneData(request.getParameter("sceneData"));
//        return sceneProService.uploadFloorJson(base);
//    }
//
//    /**
//     * 安居客
//     */
//    @ApiOperation("安居客")
//    @CheckCurrentUser(description = "安居客")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "ajkJson", value = "floor_ajk.json", dataType = "String"),
//            @ApiImplicitParam(name = "cameraJson", value = "camera.json", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "图片文件流", dataType = "String"),
//            @ApiImplicitParam(name = "floorPlanJson", value = "floor.json的数据", dataType = "String")
//    })
//    @RequestMapping(value = "/uploadFloorJsonAjk", method = RequestMethod.POST)
//    public Result uploadFloorJsonAjk(HttpServletRequest request, @RequestParam("file") MultipartFile[] file) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String ajkJson = request.getParameter("ajkJson");
//        String cameraJson = request.getParameter("cameraJson");
//        String floorPlanJson = request.getParameter("floorPlanJson");
//
//        return sceneProService.uploadFloorJsonAjk(sceneNum, ajkJson, cameraJson, floorPlanJson, file);
//    }
//
//    /**
//     * 重置画墙重建模型
//     * @return
//     */
//    @ApiOperation("重置画墙重建模型")
////    @CheckCurrentUser(description = "重置画墙重建模型")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "sceneData", value = "scene.json的数据", dataType = "String")
//    })
//    @RequestMapping(value = "/resetUploadFloorJson", method = RequestMethod.POST)
//    public Result resetUploadFloorJson(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        base.setSceneData(request.getParameter("sceneData"));
//        return sceneProService.resetUploadFloorJson(base);
//    }
//
//    /**
//     * 上传二维码和分享的logo
//     * @return
//     */
//    @ApiOperation("上传二维码和分享的logo")
//    @CheckCurrentUser(description = "上传二维码和分享的logo")
//    @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")
//    @RequestMapping(value = "/uploadShareLogo", method = RequestMethod.POST)
//    public Result uploadShareLogo(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) throws Exception {
//        RequestSceneEdit base = new RequestSceneEdit();
//        base.setSceneNum(request.getParameter("sceneNum"));
//        return sceneProService.uploadShareLogo(base, file);
//    }
//
//    /**
//     * 上传图片多媒体数据，直接到七牛云
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传图片多媒体数据，直接到七牛云")
//    @CheckCurrentUser(description = "上传图片多媒体数据，直接到七牛云")
//    @RequestMapping(value = "/uploadPic", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "folderName", value = "文件夹名字", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadPic(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String folderName = request.getParameter("folderName");
//        String toOss = request.getParameter("toOss");
//
//        return sceneProService.uploadPic(sceneNum, folderName, file, toOss);
//    }
//
//    /**
//     * 直接上传hot.json到oss
//     * @return
//     */
//    @ApiOperation("直接上传hot.json到oss")
//    @CheckCurrentUser(description = "上传图片多媒体数据，直接到七牛云")
//    @RequestMapping(value = "/uploadHotJsonToOss", method = RequestMethod.POST)
//    @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")
//    public Result uploadHotJsonToOss(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//
//        return sceneProService.uploadHotJsonToOss(sceneNum);
//    }
//
//    /**
//     * 删除oss的数据
//     * @return
//     */
//    @ApiOperation("删除oss的数据")
//    @CheckCurrentUser(description = "删除oss的数据")
//    @RequestMapping(value = "/deleteOss", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "filePath", value = "文件路径", dataType = "String")})
//    public Result deleteOss(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        String filePath = request.getParameter("filePath");
//        return sceneProService.deleteOss(filePath);
//    }
//
//    /**
//     * 上传图片多媒体数据，直接到七牛云
//     * @param file
//     * @return
//     */
//    @ApiOperation("上传图片多媒体数据，直接到七牛云")
//    @CheckCurrentUser(description = "上传图片多媒体数据，直接到七牛云")
//    @RequestMapping(value = "/uploadFloorplanPng", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadFloorplanPng(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile[] file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String cadInfo = request.getParameter("cadInfo");
//        return sceneProService.uploadFloorplanPng(sceneNum, file, cadInfo);
//    }
//
//
//    /**
//     * 检验视频网站url是否正确
//     * @return
//     */
//    @ApiOperation("检验视频网站url是否正确")
//    @CheckCurrentUser(description = "检验视频网站url是否正确")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "path", value = "外链链接", dataType = "String")})
//    @RequestMapping(value = "/checkVideoUrl", method = RequestMethod.POST)
//    public Result checkVideoUrl(HttpServletRequest request){
//        String path = request.getParameter("path");
//        if(StringUtils.isEmpty(path)){
//            throw new BaseRuntimeException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
//        }
//
//        if(!path.contains("qq.com") && !path.contains("youku.com") && !path.contains("iqiyi.com")){
//            throw new BaseRuntimeException(SceneConstant.FAILURE_CODE_5016, SceneConstant.FAILURE_MSG_5016);
//        }
//
//        if(path.contains("v.qq.com/txp/iframe/player.html") || path.contains("player.youku.com/embed")
//                || path.contains("open.iqiyi.com/developer/player_js/coopPlayerIndex.html")){
//            return Result.success(path);
//        }
//
//        String html = "";
//        try {
//            URL url = new URL(path);
//            HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
//            httpConn.setConnectTimeout(60000);
//            httpConn.setReadTimeout(60000);
//
//            InputStreamReader input = new InputStreamReader(httpConn
//                    .getInputStream(), "utf-8");
//            BufferedReader bufReader = new BufferedReader(input);
//            String line = "";
//            String vid = "";
//            if(path.contains("qq.com")){
//                while ((line = bufReader.readLine()) != null) {
////                    System.out.println(line);
//                    if(line.contains("m.v.qq.com/play.html")){
//                        System.out.println(line.substring(line.indexOf("&vid=") + 5, line.indexOf("&ptag")));
//                        vid = line.substring(line.indexOf("&vid=") + 5, line.indexOf("&ptag"));
//                        break;
//                    }
//                }
//                if(!StringUtils.isEmpty(vid)){
//                    html = "https://v.qq.com/txp/iframe/player.html?vid=" + vid;
//                }
//            }
//
//            if(path.contains("youku.com")){
//                vid = path.substring(path.indexOf("/id_") + "/id_".length(), path.indexOf(".html"));
//                html = "https://player.youku.com/embed/" + vid;
//            }
//
//            if(path.contains("iqiyi.com")){
//                String tvid = "";
//                while ((line = bufReader.readLine()) != null) {
//                    if(line.contains("param['vid']")){
//                        vid = line.substring(line.indexOf("\"") + 1, line.lastIndexOf("\""));
//                    }
//                    if(line.contains("param['tvid']")){
//                        tvid = line.substring(line.indexOf("\"") + 1, line.lastIndexOf("\""));
//                    }
//                }
//                if(!StringUtils.isEmpty(vid) && !StringUtils.isEmpty(tvid)){
//                    html = "https://open.iqiyi.com/developer/player_js/coopPlayerIndex.html?vid=" + vid +
//                            "&tvId=" + tvid;
//                }
//            }
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//        return Result.success(html);
//    }
//
//    /**
//     * 肖安需求，下载场景obj和贴图
//     */
//    @CheckCurrentUser(description = "检验视频网站url是否正确")
//    @SystemControllerLog(description = "下载obj和贴图")
//    @RequestMapping(value = "/downloadTexData")
//    public Result downloadTexData(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//
//        if(StringUtils.isEmpty(sceneNum)){
//            throw new BaseRuntimeException(LoginConstant.FAILURE_CODE_3001, LoginConstant.FAILURE_MSG_3001);
//        }
//        SceneProEntity sceneProEntity = sceneProService.findBySceneNum(sceneNum);
//        if(sceneProEntity == null){
//            throw new BaseRuntimeException(SceneConstant.FAILURE_CODE_5005, SceneConstant.FAILURE_MSG_5005);
//        }
//
//        if(!new File(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum).exists()){
//            new File(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum).mkdirs();
//        }
//
//        //上传过的资源
//        StringBuffer dataBuf = new StringBuffer()
//                .append("data").append(File.separator)
//                .append("data").append(sceneProEntity.getNum())
//                .append(File.separator);
//
//        StringBuffer dataBuffer = new StringBuffer(ConstantFilePath.SCENE_PATH).append(dataBuf.toString());
//        String strsceneInfos = FileUtils.readFile(dataBuffer.toString() + "scene.json");
//        JSONObject scenejson = new JSONObject();
//        if(strsceneInfos!=null) {
//            scenejson = JSONObject.parseObject(strsceneInfos);
//        }
//
//        String newData =  sceneProEntity.getDataSource() + "_obj2txt/extras";
//        String newResultData = sceneProEntity.getDataSource() + "_obj2txt/results/upload.json";
//        if(scenejson.containsKey("isUploadObj") && new File(newData).exists() && new File(newResultData).exists()){
//            FileUtils.zipFile(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum + "/" + sceneNum + ".zip", newData);
//            return Result.success(mainUrl + "scene/images/images" + sceneNum + "/" + sceneNum + ".zip?t=" +System.currentTimeMillis());
//        }
//
//        String buildType = sceneProEntity.getBuildType();
//        if("V3".equals(buildType)){
//            //V3版本去oss下载2048模型
//            String meshPath = ConstantFilePath.SCENE_PATH + "data/data" + sceneNum + "/mesh";
//            FileUtils.deleteDirectory(meshPath);
//            CreateObjUtil.ossUtilCp("data/data" + sceneNum + "/mesh", meshPath);
//            if(new File(meshPath.concat("/mesh")).listFiles().length > 0){
//                for(File file : new File(meshPath.concat("/mesh")).listFiles()){
//                    if(file.getName().endsWith(".obj") && !"output.house.obj".equals(file.getName()) &&
//                            !"mesh.obj".equals(file.getName())){
//                        file.delete();
//                    }
//                    if(file.getName().endsWith(".mtl") && !"output.house.mtl".equals(file.getName()) &&
//                            !"mesh.mtl".equals(file.getName())){
//                        file.delete();
//                    }
//                }
//                FileUtils.zipFile(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum + "/" + sceneNum + ".zip", meshPath);
//                return Result.success(mainUrl + "scene/images/images" + sceneNum + "/" + sceneNum + ".zip?t=" +System.currentTimeMillis());
//            }
//        }
//
//        //V2版本在本地获取模型资源
//        //修改过的资源
//        String editData =  sceneProEntity.getDataSource() + "_edit/caches/tex";
//        String ResultData = sceneProEntity.getDataSource() + "_edit/results";
//        if (new File(editData).exists() && new File(ResultData).exists()){
//            for(File file : new File(editData).listFiles()){
//                if(file.getName().endsWith(".obj") && !"output.house.obj".equals(file.getName()) &&
//                         !"mesh.obj".equals(file.getName())){
//                    file.delete();
//                }
//                if(file.getName().endsWith(".mtl") && !"output.house.mtl".equals(file.getName()) &&
//                         !"mesh.mtl".equals(file.getName())){
//                    file.delete();
//                }
//            }
//
//            FileUtils.zipFile(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum + "/" + sceneNum + ".zip", editData);
//            return Result.success(mainUrl + "scene/images/images" + sceneNum + "/" + sceneNum + ".zip?t=" +System.currentTimeMillis());
//        }
//
//        //没上传过返回源资源
//        String dataPath = sceneProEntity.getDataSource() + "/caches/tex";
//        File dataFile = new File(dataPath);
//        if(!dataFile.exists()){
//            throw new BaseRuntimeException(LoginConstant.FAILURE_CODE_3018, LoginConstant.FAILURE_MSG_3018);
//        }
//        for(File file : dataFile.listFiles()){
//            if(file.getName().endsWith(".obj") && !"output.house.obj".equals(file.getName()) &&
//                    !"mesh.obj".equals(file.getName())){
//                file.delete();
//            }
//            if(file.getName().endsWith(".mtl") && !"output.house.mtl".equals(file.getName()) &&
//                    !"mesh.mtl".equals(file.getName())){
//                file.delete();
//            }
//        }
//
//        FileUtils.zipFile(ConstantFilePath.SCENE_PATH + "images/images" + sceneNum + "/" + sceneNum + ".zip", dataPath);
//        return Result.success(mainUrl + "scene/images/images" + sceneNum + "/" + sceneNum + ".zip?t=" +System.currentTimeMillis());
//
//
//    }
//
//    /**
//     * 肖安需求，上传修改后的obj和贴图
//     * @param file
//     * @return
//     */
//    @ApiOperation("肖安需求，上传修改后的obj和贴图")
//    @CheckCurrentUser(description = "肖安需求，上传修改后的obj和贴图")
//    @SystemControllerLog(description = "上传修改后的obj和贴图")
//    @RequestMapping(value = "/uploadObjAndImg", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "文件", dataType = "MultipartFile")})
//    public Result uploadObjAndImg(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        return sceneProService.uploadObjAndImg(sceneNum, file);
//    }
//
//    /**
//     * 修改logoBottom状态
//     * @param
//     * @return
//     */
//    @ApiOperation("修改logoBottom状态")
//    @CheckCurrentUser(description = "修改logoBottom状态")
//    @RequestMapping(value = "/uploadLogoBottomStatus", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer")})
//    public Result uploadLogoBottomStatus(HttpServletRequest request, HttpServletResponse response) throws Exception {
//        String sceneNum = request.getParameter("sceneNum");
//        String status = request.getParameter("status");
//        return sceneProService.uploadLogoBottomStatus(sceneNum, status);
//    }
//
//    /**
//     * 保存通用json数据
//     */
//    @ApiOperation("保存通用json数据")
//    @CheckCurrentUser(description = "保存通用json数据")
//    @RequestMapping(value = "/saveJsonData", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "jsonData", value = "json数据", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名xxx.json", dataType = "String")})
//    public Result saveJsonData(HttpServletRequest request) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String jsonData = request.getParameter("jsonData");
//        return sceneProService.saveJsonData(sceneNum, fileName, jsonData);
//    }
//
//    /**
//     * 下载点位全景图或视频
//     */
//    @ApiOperation("下载点位全景图或视频")
//    @CheckCurrentUser(description = "下载点位全景图或视频")
//    @RequestMapping(value = "/downloadPanoramaOrVideo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "类型：image,video", dataType = "String"),
//            @ApiImplicitParam(name = "planId", value = "页面显示的下标", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名xxx.json", dataType = "String")})
//    public Result downloadPanoramaOrVideo(HttpServletRequest request) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String type = request.getParameter("type");
//        String planId = request.getParameter("planId");
//
//        if(fileName.contains("..") || fileName.contains("./\\") || fileName.contains(".//")
//                || fileName.contains(".\\\\") || fileName.contains(".\\/")){
//            throw new BaseRuntimeException(LoginConstant.FAILURE_CODE_3018, LoginConstant.FAILURE_MSG_3018);
//        }
//
//        String url = sceneProService.downloadPanoramaOrVideo(sceneNum, fileName, type, planId);
//        Map<String, Object> map = new HashMap<>();
//        map.put("fileUrl", url + "?t=" + System.currentTimeMillis());
//        map.put("fileName", url.substring(url.lastIndexOf("/") + 1));
//
//        return Result.success(map);
//    }
//
//    /**
//     * 上传点位全景图或视频
//     */
//    @ApiOperation("上传点位全景图或视频")
//    @CheckCurrentUser(description = "上传点位全景图或视频")
//    @RequestMapping(value = "/uploadPanoramaOrVideo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "type", value = "类型：image,video", dataType = "String"),
//            @ApiImplicitParam(name = "planId", value = "页面显示的下标", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名xxx.json", dataType = "String")})
//    public Result uploadPanoramaOrVideo(HttpServletRequest request, @RequestParam("file") MultipartFile file) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String type = request.getParameter("type");
//        String planId = request.getParameter("planId");
//        return sceneProService.uploadPanoramaOrVideo(sceneNum, fileName, type, file, planId);
//    }
//
//    /**
//     * 上传绿幕抠图视频
//     */
//    @ApiOperation("上传绿幕抠图视频")
//    @CheckCurrentUser(description = "上传绿幕抠图视频")
//    @RequestMapping(value = "/uploadROIVideo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "planId", value = "页面显示的下标", dataType = "String"),
//            @ApiImplicitParam(name = "rect", value = "json文本内容", dataType = "String"),
//            @ApiImplicitParam(name = "dir", value = "dir", dataType = "String"),
//            @ApiImplicitParam(name = "hfov", value = "hfov", dataType = "String"),
//            @ApiImplicitParam(name = "vfov", value = "vfov", dataType = "String"),
//            @ApiImplicitParam(name = "videoDirMatrix", value = "videoDirMatrix", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名", dataType = "String")})
//    public Result uploadROIVideo(HttpServletRequest request, @RequestParam(name = "file", required = false) MultipartFile file) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String planId = request.getParameter("planId");
//        String rect = request.getParameter("rect");
//        String videoDirMatrix = request.getParameter("videoDirMatrix");
//        String dir = request.getParameter("dir");
//        String hfov = request.getParameter("hfov");
//        String vfov = request.getParameter("vfov");
//        return sceneProService.uploadROIVideo(sceneNum, fileName, file, planId, rect, videoDirMatrix, dir, hfov, vfov);
//    }
//
//    /**
//     * 删除绿幕抠图视频
//     */
//    @ApiOperation("删除绿幕抠图视频")
//    @CheckCurrentUser(description = "删除绿幕抠图视频")
//    @RequestMapping(value = "/deleteROIVideo", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "planId", value = "页面显示的下标", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名", dataType = "String")})
//    public Result deleteROIVideo(HttpServletRequest request) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        String planId = request.getParameter("planId");
//        return sceneProService.deleteROIVideo(sceneNum, fileName, planId);
//    }
//
//
//    /**
//     * 上传场景背景音乐
//     */
//    @ApiOperation("上传场景背景音乐")
//    @CheckCurrentUser(description = "上传场景背景音乐")
//    @RequestMapping(value = "/uploadBgMusic", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名xxx.mp3", dataType = "String")})
//    public Result uploadBgMusic(HttpServletRequest request, @RequestParam("file") MultipartFile file) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        String fileName = request.getParameter("fileName");
//        return sceneProService.uploadBgMusic(sceneNum, fileName, file);
//    }
//
//    /**
//     * 删除上传的场景背景音乐
//     */
//    @ApiOperation("删除上传的场景背景音乐")
//    @CheckCurrentUser(description = "删除上传的场景背景音乐")
//    @RequestMapping(value = "/deleteUploadBgMusic", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件全名xxx.mp3", dataType = "String")})
//    public Result deleteUploadBgMusic(HttpServletRequest request) throws Exception{
//        String sceneNum = request.getParameter("sceneNum");
//        return sceneProService.deleteUploadBgMusic(sceneNum);
//    }
//
//
//    /**
//     * 保存关联全景图
//     */
//    @ApiOperation("保存关联全景图")
//    @CheckCurrentUser(description = "保存关联全景图")
//    @RequestMapping(value = "/savePanorama", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "sid", value = "sid", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件流的名称", dataType = "String"),
//            @ApiImplicitParam(name = "file", value = "全景图文件流", dataType = "String")})
//    public Result savePanorama(HttpServletRequest request, @RequestParam("file") MultipartFile file) throws Exception{
//
//        String sceneNum = request.getParameter("sceneNum");
//        String sid = request.getParameter("sid");
//        String imagesName = request.getParameter("fileName");
//        return sceneProService.savePanorama(sceneNum, sid, file, imagesName);
//    }
//
//    /**
//     * 保存关联全景图
//     */
//    @ApiOperation("保存关联全景图json")
//    @CheckCurrentUser(description = "保存关联全景图json")
//    @RequestMapping(value = "/savePanoramaJson", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "sid", value = "全景图sid，有着删除", dataType = "String"),
//            @ApiImplicitParam(name = "fileData", value = "文件内容", dataType = "String"),
//            @ApiImplicitParam(name = "fileName", value = "文件名称", dataType = "String")})
//    public Result savePanoramaJson(HttpServletRequest request) throws Exception{
//
//        String sceneNum = request.getParameter("sceneNum");
//        String fileData = request.getParameter("fileData");
//        String fileName = request.getParameter("fileName");
//        String sid = request.getParameter("sid");
//        return sceneProService.savePanoramaJson(sceneNum, fileData, fileName, sid);
//    }
//
//    /**
//     * 保存关联全景图
//     */
//    @ApiOperation("保存关联全景图json")
//    @CheckCurrentUser(description = "保存关联全景图json")
//    @RequestMapping(value = "/copyAndUpdateFloorJson", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "floorJsonData", value = "floorJson的数据", dataType = "String")})
//    public Result copyAndUpdateFloorJson(HttpServletRequest request) throws Exception{
//
//        String sceneNum = request.getParameter("sceneNum");
//        String floorJsonData = request.getParameter("floorJsonData");
//        return sceneProService.copyAndUpdateFloorJson(sceneNum, floorJsonData);
//    }
//
//    /**
//     * 保存关联全景图
//     */
//    @ApiOperation("保存关联全景图json")
//    @CheckCurrentUser(description = "保存关联全景图json")
//    @RequestMapping(value = "/updateFloorJson", method = RequestMethod.POST)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String"),
//            @ApiImplicitParam(name = "floorJsonData", value = "floorJson的数据", dataType = "String")})
//    public Result updateFloorJson(HttpServletRequest request) throws Exception{
//
//        String sceneNum = request.getParameter("sceneNum");
//        String floorJsonData = request.getParameter("floorJsonData");
//        return sceneProService.updateFloorJson(sceneNum, floorJsonData);
//    }
//
//    /**
//     * 下载点位数据
//     */
//    @ApiOperation("下载点位数据")
//    @CheckCurrentUser(description = "下载点位数据")
//    @RequestMapping(value = "/downloadVisionData")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")})
//    public Result downloadVisionData(String sceneNum) throws Exception{
//        return sceneProService.downloadVisionData(sceneNum);
//    }
//
//    /**
//     * 下载全景图数据
//     */
//    @ApiOperation("下载全景图数据")
//    @CheckCurrentUser(description = "下载全景图数据")
//    @RequestMapping(value = "/downloadPanoramaData")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sceneNum", value = "场景编码", dataType = "String")})
//    public Result downloadPanoramaData(String sceneNum) throws Exception{
//        return sceneProService.downloadPanoramaData(sceneNum);
//    }

}
