|
@@ -10,10 +10,7 @@ import com.alibaba.nacos.shaded.com.google.gson.JsonArray;
|
|
|
import com.alibaba.nacos.shaded.com.google.gson.JsonObject;
|
|
|
import com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.StringUtil;
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
-import com.miniframe.aftercure.ActionMsg;
|
|
|
-import com.miniframe.aftercure.AnimationFile;
|
|
|
-import com.miniframe.aftercure.SliceMsg;
|
|
|
-import com.miniframe.aftercure.StreamMsg;
|
|
|
+import com.miniframe.aftercure.*;
|
|
|
import com.miniframe.constant.MFConstant;
|
|
|
import com.miniframe.core.ExecProcessFlow;
|
|
|
import com.miniframe.core.exception.BusinessException;
|
|
@@ -338,6 +335,29 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
|
animationFemFile(proId, obj,msg);
|
|
|
}
|
|
|
msg.setParamJson(obj.toString());
|
|
|
+ }else if(action.equals("meshSplit")){//网格剖分
|
|
|
+ try{
|
|
|
+ MeshMsg meshMsg= XiJsonUtil.jsonToPojo(paramJson, MeshMsg.class);
|
|
|
+ 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("MESH00001");
|
|
|
+ }else {
|
|
|
+ AdiModeling modeling = modelings.get(0);
|
|
|
+ SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
|
|
|
+ SysFile file = fileMapper.selectByPrimaryKey(modeling.getGeometryFile());
|
|
|
+ if (file == null) {
|
|
|
+ throw new BusinessException("MESH00001");
|
|
|
+ }
|
|
|
+ meshMsg.setGeometryFile(XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());
|
|
|
+ }
|
|
|
+ msg.setParamJson(XiJsonUtil.objectToJson(meshMsg));
|
|
|
+ }catch (Exception e){
|
|
|
+ throw new BusinessException("MESH00002");
|
|
|
+ }
|
|
|
}
|
|
|
MFMqUtils.get(CaeMQ.class).sendCaein(XiJsonUtil.objectToJson(msg));
|
|
|
|