|
@@ -7,6 +7,7 @@ import java.util.concurrent.ExecutorService;
|
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
import com.miniframe.core.ExecProcessFlow;
|
|
|
+import com.miniframe.core.IniFileReader;
|
|
|
import com.miniframe.core.exception.BusinessException;
|
|
|
import com.miniframe.core.ext.UtilTools;
|
|
|
import com.miniframe.generate.business.system.model.C00005BaseModel;
|
|
@@ -64,6 +65,10 @@ public class C00005Service extends C00005BaseModel implements ExecProcessFlow {
|
|
|
}
|
|
|
AdiModeling modeling = modelingList.get(0);
|
|
|
AdiSolverJob job =AdiSolverJobService.createJob(config);//创建执行任务
|
|
|
+ /**
|
|
|
+ * 删除上次创建的索引日志数据
|
|
|
+ */
|
|
|
+ delEsIndex(project.getId());
|
|
|
|
|
|
if(solver.getCompany().equals("ADI.SimWork")&& solver.getSolverModel().equals("HCFDLab")){
|
|
|
HcfdParam param = XiJsonUtil.jsonToPojo(config.getParameterObj(),HcfdParam.class);
|
|
@@ -87,9 +92,20 @@ public class C00005Service extends C00005BaseModel implements ExecProcessFlow {
|
|
|
httpExeJob(job,"fem",url,null,null,null);
|
|
|
}
|
|
|
|
|
|
- //文件封装,
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 执行前 删除上次创建的索引日志数据
|
|
|
+ */
|
|
|
+ private void delEsIndex(String proId) throws Exception {
|
|
|
+ String host = "http://192.168.0.43:8031/del";
|
|
|
+ String path ="";
|
|
|
+ String method="";
|
|
|
+ Map<String, String> headers = new HashMap<>();
|
|
|
+ Map<String, String> querys= new HashMap<>();
|
|
|
+ Map<String, String> bodys= new HashMap<>();
|
|
|
+ bodys.put("projectId", proId);
|
|
|
+ HttpResponse response= HttpUtils.doPost(host,path,method,headers,querys,bodys);
|
|
|
}
|
|
|
/**
|
|
|
* onespace
|