|
@@ -3,8 +3,7 @@ package com.fdkankan.manage.service.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.constant.SceneConstant;
|
|
|
-import com.fdkankan.common.exception.BusinessException;
|
|
|
-import com.fdkankan.manage.common.RedisKeyUtil;
|
|
|
+import com.fdkankan.manage.exception.BusinessException;
|
|
|
import com.fdkankan.manage.entity.*;
|
|
|
import com.fdkankan.manage.service.*;
|
|
|
import com.fdkankan.manage.vo.response.DownVo;
|
|
@@ -40,7 +39,7 @@ public class DownService implements IDownService {
|
|
|
@Override
|
|
|
public DownVo checkDownLoad(String sceneNum) {
|
|
|
if(StringUtils.isEmpty(sceneNum)){
|
|
|
- throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS.code(),ErrorCode.MISSING_REQUIRED_PARAMETERS.message());
|
|
|
}
|
|
|
ScenePro scenePro = sceneProService.getByNum(sceneNum);
|
|
|
ScenePlus plus = scenePlusService.getByNum(sceneNum);
|
|
@@ -102,7 +101,7 @@ public class DownService implements IDownService {
|
|
|
@Override
|
|
|
public DownVo down(String sceneNum) {
|
|
|
if(StringUtils.isEmpty(sceneNum) ){
|
|
|
- throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS.code(),ErrorCode.MISSING_REQUIRED_PARAMETERS.message());
|
|
|
}
|
|
|
ScenePro scenePro = sceneProService.getByNum(sceneNum);
|
|
|
ScenePlus scenePlus = scenePlusService.getByNum(sceneNum);
|
|
@@ -126,7 +125,7 @@ public class DownService implements IDownService {
|
|
|
@Override
|
|
|
public DownloadProcessVo downloadProcess(String sceneNum) {
|
|
|
if (StringUtils.isEmpty(sceneNum)) {
|
|
|
- throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
+ throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS.code(),ErrorCode.MISSING_REQUIRED_PARAMETERS.message());
|
|
|
}
|
|
|
ScenePro scenePro = sceneProService.getByNum(sceneNum);
|
|
|
ScenePlus scenePlus = scenePlusService.getByNum(sceneNum);
|