|
@@ -401,14 +401,19 @@ public class LaserService {
|
|
|
param.setSceneCode(num);
|
|
|
Result responseEntity = laserClient.downE57Status(param);
|
|
|
if( responseEntity.getCode() != HttpStatus.OK.value()){
|
|
|
- log.error("downOfflineSceneStatus-根据场景码获取激光转台下载状态失败:{}",responseEntity);
|
|
|
+ log.error("downE57Status-根据场景码获取激光转台下载状态失败:{}",responseEntity);
|
|
|
return null;
|
|
|
}
|
|
|
+ if(responseEntity.getCode() == 407){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXIST_E57);
|
|
|
+ }
|
|
|
vo = JSONObject.parseObject(JSONObject.toJSONString(responseEntity.getData()), SSDownSceneVo.class);
|
|
|
return vo;
|
|
|
|
|
|
+ }catch (BusinessException e){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXIST_E57);
|
|
|
}catch (Exception e){
|
|
|
- log.error("downOfflineSceneStatus-根据场景码获取激光转台下载状态失败!",e);
|
|
|
+ log.error("downE57Status-根据场景码获取激光转台下载状态失败!",e);
|
|
|
}
|
|
|
return null ;
|
|
|
}
|
|
@@ -420,13 +425,18 @@ public class LaserService {
|
|
|
param.setSceneCode(num);
|
|
|
Result responseEntity = laserClient.downE57(param);
|
|
|
if( responseEntity.getCode() != HttpStatus.OK.value()){
|
|
|
- log.error("downOfflineScene-根据场景码获取激光转台下载失败:{}",responseEntity);
|
|
|
+ log.error("downE57-根据场景码获取激光转台下载失败:{}",responseEntity);
|
|
|
return null;
|
|
|
}
|
|
|
+ if(responseEntity.getCode() == 407){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXIST_E57);
|
|
|
+ }
|
|
|
vo = JSONObject.parseObject(JSONObject.toJSONString(responseEntity.getData()), SSDownSceneVo.class);
|
|
|
return vo ;
|
|
|
+ }catch (BusinessException e){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXIST_E57);
|
|
|
}catch (Exception e){
|
|
|
- log.error("downOfflineScene-根据场景码获取激光转台下载状态失败!",e);
|
|
|
+ log.error("downE57-根据场景码获取激光转台下载状态失败!",e);
|
|
|
}
|
|
|
return null ;
|
|
|
}
|