|
@@ -229,7 +229,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData resetUploadFloorJson(SceneEditParamVO sceneEdit) throws Exception{
|
|
|
if(StrUtil.isEmpty(sceneEdit.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneEdit.getNum());
|
|
@@ -295,7 +295,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
long start = System.currentTimeMillis();
|
|
|
log.info("画墙重建模型开始时间:" + start);
|
|
|
if(StrUtil.isEmpty(sceneEdit.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneEdit.getNum());
|
|
@@ -534,7 +534,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
try {
|
|
|
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneNum);
|
|
@@ -704,7 +704,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData addHotMediaInfo(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getType()) ||
|
|
|
StrUtil.isEmpty(base.getInfo())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -736,7 +736,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData saveScreencapFile(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getIndex()) ||
|
|
|
StrUtil.isEmpty(base.getCamerasData())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -787,7 +787,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData saveSceneKey(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getSceneKey())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -809,7 +809,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData saveFloorLogo(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getSize()) ||
|
|
|
StrUtil.isEmpty(base.getLogoType())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -835,7 +835,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData saveBackgroundMusic(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getMusicName())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -896,7 +896,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData getScreencapVoice(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -1124,7 +1124,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String fileName = param.getFileName();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneNum);
|
|
@@ -1265,7 +1265,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String index = param.getIndex();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneNum);
|
|
@@ -1357,7 +1357,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData deleteScreencapVoice(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -1419,7 +1419,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData deleteScreencap(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -1470,7 +1470,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData saveTourList(SceneEditParamVO base) throws Exception{
|
|
|
if(StrUtil.isEmpty(base.getNum()) || StrUtil.isEmpty(base.getTourList()) ||
|
|
|
StrUtil.isEmpty(base.getScreencapLen())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -1501,7 +1501,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData saveSceneInfo(SceneEditParamVO base) throws Exception{
|
|
|
|
|
|
if(StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = this.findBySceneNum(base.getNum());
|
|
@@ -2159,7 +2159,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String sid = param.getSid();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = this.findBySceneNum(sceneNum);
|
|
@@ -2522,7 +2522,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
return;
|
|
|
}
|
|
|
try{
|
|
|
- FileUtils.writeFile(hotJsonPath, jsonObject.toJSONString());
|
|
|
+ FileUtils.writeFile(hotJsonPath, jsonObject.toJSONString());
|
|
|
}finally {
|
|
|
redisLockUtil.unlockLua(lockKey);
|
|
|
}
|
|
@@ -2616,7 +2616,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
// @SystemServiceLog(description = "保存场景热点")
|
|
|
public ResultData saveShopHot(SceneEditParamVO base) throws Exception {
|
|
|
if(StrUtil.isEmpty(base.getType())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
String fileName = "shopHot.json";
|
|
@@ -2727,7 +2727,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData saveOverlay(SceneEditParamVO base) throws Exception {
|
|
|
if(StrUtil.isEmpty(base.getType())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
String sid = base.getSid();
|
|
@@ -2839,7 +2839,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String sid = param.getSid();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(sceneNum);
|
|
@@ -2875,7 +2875,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
// @SystemServiceLog(description = "保存场景热点")
|
|
|
public ResultData saveScreencapData(SceneEditParamVO base) throws Exception {
|
|
|
if(StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -3060,7 +3060,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public ResultData uploadShareLogo(SceneEditParamVO base, MultipartFile file) throws Exception {
|
|
|
if(file == null || StrUtil.isEmpty(base.getNum())){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = findBySceneNum(base.getNum());
|
|
@@ -3127,7 +3127,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String folderName = param.getFolderName();
|
|
|
String toOss = param.getToOss();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -3171,7 +3171,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData uploadHotJsonToOss(SceneEditParamVO param) throws Exception {
|
|
|
String sceneNum = param.getNum();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
String path = ConstantFilePath.SCENE_PATH+"data"+File.separator+"data"+sceneNum;
|
|
@@ -3191,7 +3191,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String cadInfo = param.getCadInfo();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -3393,7 +3393,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String status = param.getStatus();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(status)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -3457,10 +3457,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
// SceneProExt sceneProExt = sceneProExtService.findBySceneProId(scenePro.getId());
|
|
|
ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
|
|
|
|
|
|
- if (file == null || file.getSize() <= 0) {
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5012);
|
|
|
- }
|
|
|
-
|
|
|
//文件上传的位置可以自定义
|
|
|
String path = scenePlusExt.getDataSource() + "_obj2txt";
|
|
|
String zipPath = path + "/zip/";
|
|
@@ -3680,7 +3676,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String fileName = param.getFileName();
|
|
|
String jsonData = param.getJsonData();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName) || StrUtil.isEmpty(jsonData)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -3707,7 +3703,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String planId = param.getPlanId();
|
|
|
String type = param.getPlanId();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName) || StrUtil.isEmpty(type)|| StrUtil.isEmpty(planId)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
if(fileName.contains("..") || fileName.contains("./\\") || fileName.contains(".//")
|
|
@@ -3763,7 +3759,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String fileName = param.getFileName();
|
|
|
String planId = param.getPlanId();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName) || StrUtil.isEmpty(type) || StrUtil.isEmpty(planId)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -3835,7 +3831,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String vfov = param.getVfov();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName) ||
|
|
|
StrUtil.isEmpty(planId) || StrUtil.isEmpty(rect)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4004,7 +4000,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String fileName = param.getFileName();
|
|
|
String planId = param.getPlanId();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName) || StrUtil.isEmpty(planId)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4070,7 +4066,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String fileName = param.getFileName();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4117,7 +4113,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData deleteUploadBgMusic(FileParamVO param) throws Exception {
|
|
|
String sceneNum = param.getNum();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4152,7 +4148,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sid = param.getSid();
|
|
|
String imagesName = param.getImagesName();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(sid)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4316,7 +4312,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String fileData = param.getFileData();
|
|
|
String sid = param.getSid();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(fileName)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = baseMapper.findByNum(sceneNum);
|
|
@@ -4368,7 +4364,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String floorJsonData = param.getFloorJsonData();
|
|
|
if(StrUtil.isEmpty(sceneNum) ){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
StringBuffer dataBuf = new StringBuffer()
|
|
@@ -4408,7 +4404,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
String floorJsonData = param.getFloorJsonData();
|
|
|
if(StrUtil.isEmpty(sceneNum) || StrUtil.isEmpty(floorJsonData)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
StringBuffer dataBuf = new StringBuffer()
|
|
@@ -4490,7 +4486,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData downloadPanoramaData(SceneEditParamVO param) throws Exception {
|
|
|
String sceneNum = param.getNum();
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
ScenePro scenePro = findBySceneNum(sceneNum);
|
|
|
if(scenePro == null){
|
|
@@ -4548,7 +4544,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData downloadVisionData(SceneEditParamVO param) throws Exception {
|
|
|
String sceneCode = param.getSceneName();
|
|
|
if(StrUtil.isEmpty(sceneCode)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
List<ScenePro> sceneProList = this.list(
|
|
|
new QueryWrapper<ScenePro>()
|
|
@@ -4591,7 +4587,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
@Override
|
|
|
public SceneVO getInfo(String sceneNum) {
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -4723,7 +4719,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData getRecordAudioFromBrowser(FileParamVO param, MultipartFile file) throws IOException {
|
|
|
String sceneNum = param.getNum();
|
|
|
if(StrUtil.isEmpty(sceneNum) || file.isEmpty() || file.getSize() <= 0){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = this.findBySceneNum(sceneNum);
|
|
@@ -4751,7 +4747,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData checkVideoUrl(FileParamVO param) {
|
|
|
String path = param.getPath();
|
|
|
if(StrUtil.isEmpty(path)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
if(!path.contains("qq.com") && !path.contains("youku.com") && !path.contains("iqiyi.com")){
|
|
@@ -4818,7 +4814,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
public ResultData downloadTexData(String num) throws Exception {
|
|
|
|
|
|
if(StrUtil.isEmpty(num)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
// ScenePro scenePro = this.findBySceneNum(num);
|
|
|
ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
@@ -5185,7 +5181,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
Integer status = param.getStatus();
|
|
|
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = sceneProService.findBySceneNum(sceneNum);
|
|
@@ -5211,7 +5207,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
String sceneNum = param.getNum();
|
|
|
|
|
|
if(StrUtil.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
+ throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
ScenePro scenePro = sceneProService.findBySceneNum(sceneNum);
|