|
@@ -144,25 +144,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
message.setPath(laserObjFilePath);
|
|
message.setPath(laserObjFilePath);
|
|
message.setResultReceiverMqName(queueObjModelingPost);
|
|
message.setResultReceiverMqName(queueObjModelingPost);
|
|
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
- try {
|
|
|
|
- JyUser jyUser = scenePlusService.getJyUserByNum(num);
|
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
|
- param.put("event_type", "scene");
|
|
|
|
- param.put("event_content", "排队中");
|
|
|
|
- param.put("scene_num", num);
|
|
|
|
- param.put("event_time", new Date());
|
|
|
|
- if(Objects.nonNull(scenePlus)){
|
|
|
|
- param.put("scene_title", scenePlus.getTitle());
|
|
|
|
- }
|
|
|
|
- param.put("ryid", jyUser.getRyId());
|
|
|
|
- param.put("ryno", jyUser.getRyNo());
|
|
|
|
- param.put("nick_name", jyUser.getRyNickName());
|
|
|
|
- jmgaService.sendStatus(param);
|
|
|
|
- }catch (Exception ex){
|
|
|
|
- log.info("推送事件失败,param:{}", param);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
//发送mq,就进行计算
|
|
//发送mq,就进行计算
|
|
mqProducer.sendByWorkQueue(queueModelingCall, message);
|
|
mqProducer.sendByWorkQueue(queueModelingCall, message);
|
|
|
|
|
|
@@ -173,25 +154,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("生成OBJ场景资源准备异常,num=" + num, e);
|
|
log.error("生成OBJ场景资源准备异常,num=" + num, e);
|
|
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
- try {
|
|
|
|
- JyUser jyUser = scenePlusService.getJyUserByNum(num);
|
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
|
- param.put("event_type", "scene");
|
|
|
|
- param.put("event_content", "计算失败");
|
|
|
|
- param.put("scene_num", num);
|
|
|
|
- param.put("event_time", new Date());
|
|
|
|
- if(Objects.nonNull(scenePlus)){
|
|
|
|
- param.put("scene_title", scenePlus.getTitle());
|
|
|
|
- }
|
|
|
|
- param.put("ryid", jyUser.getRyId());
|
|
|
|
- param.put("ryno", jyUser.getRyNo());
|
|
|
|
- param.put("nick_name", jyUser.getRyNickName());
|
|
|
|
- jmgaService.sendStatus(param);
|
|
|
|
- }catch (Exception ex){
|
|
|
|
- log.info("推送事件失败,param:{}", param);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// buildSceneDTService.handBaseFail("生成OBJ场景资源准备异常", message.getPath(), message.getSceneNum(), "计算控制服务器");
|
|
// buildSceneDTService.handBaseFail("生成OBJ场景资源准备异常", message.getPath(), message.getSceneNum(), "计算控制服务器");
|
|
throw e;
|
|
throw e;
|
|
}finally {
|
|
}finally {
|
|
@@ -230,25 +192,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
if (!message.getBuildSuccess()) {
|
|
if (!message.getBuildSuccess()) {
|
|
log.error("生成OBJ场景计算失败!");
|
|
log.error("生成OBJ场景计算失败!");
|
|
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
- try {
|
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(projectNum);
|
|
|
|
- JyUser jyUser = scenePlusService.getJyUserByNum(projectNum);
|
|
|
|
- param.put("event_type", "scene");
|
|
|
|
- param.put("event_content", "计算失败");
|
|
|
|
- param.put("scene_num", projectNum);
|
|
|
|
- param.put("event_time", new Date());
|
|
|
|
- if(Objects.nonNull(scenePlus)){
|
|
|
|
- param.put("scene_title", scenePlus.getTitle());
|
|
|
|
- }
|
|
|
|
- param.put("ryid", jyUser.getRyId());
|
|
|
|
- param.put("ryno", jyUser.getRyNo());
|
|
|
|
- param.put("nick_name", jyUser.getRyNickName());
|
|
|
|
- jmgaService.sendStatus(param);
|
|
|
|
- }catch (Exception ex){
|
|
|
|
- log.info("推送事件失败,param:{}", param);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 发送钉钉消息,计算失败
|
|
// 发送钉钉消息,计算失败
|
|
// buildSceneDTService.handModelFail("生成OBJ场景计算失败!", message.getPath(), message.getBuildContext().get("sceneNum").toString(), message.getHostName());
|
|
// buildSceneDTService.handModelFail("生成OBJ场景计算失败!", message.getPath(), message.getBuildContext().get("sceneNum").toString(), message.getHostName());
|
|
return;
|
|
return;
|
|
@@ -368,24 +311,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
//重置异步操作记录
|
|
//重置异步操作记录
|
|
commonService.removeSceneAsynOperLog(projectNum);
|
|
commonService.removeSceneAsynOperLog(projectNum);
|
|
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
- try {
|
|
|
|
- JyUser jyUser = scenePlusService.getJyUserByNum(projectNum);
|
|
|
|
- param.put("event_type", "scene");
|
|
|
|
- param.put("event_content", "计算成功");
|
|
|
|
- param.put("scene_num", projectNum);
|
|
|
|
- param.put("event_time", new Date());
|
|
|
|
- if(Objects.nonNull(scenePlus)){
|
|
|
|
- param.put("scene_title", scenePlus.getTitle());
|
|
|
|
- }
|
|
|
|
- param.put("ryid", jyUser.getRyId());
|
|
|
|
- param.put("ryno", jyUser.getRyNo());
|
|
|
|
- param.put("nick_name", jyUser.getRyNickName());
|
|
|
|
- jmgaService.sendStatus(param);
|
|
|
|
- }catch (Exception ex){
|
|
|
|
- log.info("推送事件失败,param:{}", param);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// 如果未升级V4,则升级V4
|
|
// 如果未升级V4,则升级V4
|
|
if("v3".equals(version)){
|
|
if("v3".equals(version)){
|
|
fdkkV4Service.upgradeToV4(projectNum);
|
|
fdkkV4Service.upgradeToV4(projectNum);
|
|
@@ -401,26 +326,6 @@ public class BuildObjServiceImpl implements IBuildSceneService {
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("生成OBJ场景计算结果处理异常,num=" + projectNum, e);
|
|
log.error("生成OBJ场景计算结果处理异常,num=" + projectNum, e);
|
|
// buildSceneDTService.handBaseFail("生成OBJ场景计算结果处理异常", message.getPath(), projectNum, "计算控制服务器");
|
|
// buildSceneDTService.handBaseFail("生成OBJ场景计算结果处理异常", message.getPath(), projectNum, "计算控制服务器");
|
|
-
|
|
|
|
- Map<String, Object> param = new HashMap<>();
|
|
|
|
- try {
|
|
|
|
- ScenePlus scenePlus = scenePlusService.getScenePlusByNum(projectNum);
|
|
|
|
- JyUser jyUser = scenePlusService.getJyUserByNum(projectNum);
|
|
|
|
- param.put("event_type", "scene");
|
|
|
|
- param.put("event_content", "计算失败");
|
|
|
|
- param.put("scene_num", projectNum);
|
|
|
|
- param.put("event_time", new Date());
|
|
|
|
- if(Objects.nonNull(scenePlus)){
|
|
|
|
- param.put("scene_title", scenePlus.getTitle());
|
|
|
|
- }
|
|
|
|
- param.put("ryid", jyUser.getRyId());
|
|
|
|
- param.put("ryno", jyUser.getRyNo());
|
|
|
|
- param.put("nick_name", jyUser.getRyNickName());
|
|
|
|
- jmgaService.sendStatus(param);
|
|
|
|
- }catch (Exception ex){
|
|
|
|
- log.info("推送事件失败,param:{}", param);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
throw e;
|
|
throw e;
|
|
}finally {
|
|
}finally {
|
|
fdkkLaserService.pushBuildStatusToLaserSystem(projectNum, laserObjFilePath + "/laserData/mesh", success ? CommonOperStatus.SUCCESS.code() : CommonOperStatus.FAILD.code());
|
|
fdkkLaserService.pushBuildStatusToLaserSystem(projectNum, laserObjFilePath + "/laserData/mesh", success ? CommonOperStatus.SUCCESS.code() : CommonOperStatus.FAILD.code());
|