|
@@ -17,6 +17,7 @@ import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.entity.*;
|
|
|
import com.fdkankan.ucenter.httpClient.service.LaserService;
|
|
|
import com.fdkankan.ucenter.httpClient.vo.SSDownSceneVo;
|
|
|
+import com.fdkankan.ucenter.httpClient.vo.SceneStatusInfoDTO;
|
|
|
import com.fdkankan.ucenter.service.*;
|
|
|
import com.fdkankan.ucenter.vo.response.DownVo;
|
|
|
import com.fdkankan.ucenter.vo.response.DownloadProcessVo;
|
|
@@ -393,7 +394,7 @@ public class DownService implements IDownService {
|
|
|
downVo.setDownloadStatus(1);
|
|
|
}
|
|
|
if(vo.getStatus() == -1){
|
|
|
- downVo.setDownloadStatus(-1);
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400016,ResultCode.FAILURE_MSG_400016);
|
|
|
}
|
|
|
return downVo;
|
|
|
}
|
|
@@ -423,7 +424,6 @@ public class DownService implements IDownService {
|
|
|
if(!cameraDetail.getUserId().equals(user.getId())){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400012,ResultCode.FAILURE_MSG_400012);
|
|
|
}
|
|
|
-
|
|
|
SceneColdStorage sceneColdStorage = sceneColdStorageService.getByNum(num);
|
|
|
if(sceneColdStorage != null && sceneColdStorage.getState() == 1){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400013,ResultCode.FAILURE_MSG_400013);
|
|
@@ -433,6 +433,14 @@ public class DownService implements IDownService {
|
|
|
if(!fYunFileServiceInterface.fileExist(dataSource.replace("/mnt/data","home")+"/data.fdage")){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400014,ResultCode.FAILURE_MSG_400014);
|
|
|
}
|
|
|
+ SceneStatusInfoDTO dto = laserService.laserSceneInfo(num);
|
|
|
+ if(dto == null){
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400003,ResultCode.FAILURE_MSG_400003);
|
|
|
+ }
|
|
|
+ if(dto.getStatus()!=2 || dto.getBuildObjStatus() == 2 || dto.getBuildE57Status() == 2){
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400015,ResultCode.FAILURE_MSG_400015);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -460,6 +468,9 @@ public class DownService implements IDownService {
|
|
|
if(vo == null){
|
|
|
throw new BusinessException(ResultCode.FAILURE_CODE_400003,ResultCode.FAILURE_MSG_400003);
|
|
|
}
|
|
|
+ if(vo.getStatus() ==-1){
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400016,ResultCode.FAILURE_MSG_400016);
|
|
|
+ }
|
|
|
downVo.setStatus(1003);
|
|
|
if(vo.getStatus() == 0 || vo.getStatus() == 2 || vo.getStatus() == 3){ //下载中
|
|
|
ssNumProcessNumE57Map.merge(num, 1, Integer::sum);
|