|
@@ -82,7 +82,28 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
|
obj.put("fileType",modeling.getGridFileType().toLowerCase());
|
|
|
msg.setParamJson(obj.toString());
|
|
|
}
|
|
|
+ }else if(solver.getSolverModel().equals("FEMLab(结构力学)")){
|
|
|
+ AdiModelingMapper modelingMapper = UtilTools.getBean(AdiModelingMapper.class);
|
|
|
+ AdiModelingSQLBuilder sb = new AdiModelingSQLBuilder();
|
|
|
+ AdiModelingSQLBuilder.Criteria sc =sb.createCriteria();
|
|
|
+ sc.andPidEqualTo(proId);
|
|
|
+ List<AdiModeling> modelings =modelingMapper.selectByExample(sb);
|
|
|
+ if(modelings.isEmpty()){
|
|
|
+ throw new BusinessException("EB4000008");
|
|
|
+ }else{
|
|
|
+ AdiModeling modeling = modelings.get(0);
|
|
|
+ SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
|
|
|
+ SysFile file =fileMapper.selectByPrimaryKey(modeling.getVtkFile());
|
|
|
+ if(file==null){
|
|
|
+ throw new BusinessException("EB4000012");
|
|
|
+ }
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ obj.put("filePath",XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());
|
|
|
+ obj.put("fileType",modeling.getGridFileType().toLowerCase());
|
|
|
+ msg.setParamJson(obj.toString());
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}else if(action.equals("zoomout")){//缩小
|
|
|
|
|
|
}else if(action.equals("zoomin")){//放大
|