|
@@ -213,6 +213,9 @@ public class TemplateGenerator {
|
|
|
XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid);
|
|
|
XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid + "/mid");
|
|
|
XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid + "/out");
|
|
|
+ XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid + "/case");
|
|
|
+ XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid + "/data_mnt");
|
|
|
+ XIFileUtils.mkdir(BPATH + "/" + aid + "/" + jid + s + "/" + gid + "/data_rst");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -524,7 +527,7 @@ public class TemplateGenerator {
|
|
|
|
|
|
}
|
|
|
|
|
|
- public static void createGassRunsh(Integer aid, Integer jid, Integer gid, String bfname) throws IOException, TemplateException {
|
|
|
+ public static void createGassRunsh(Integer aid, Integer jid, Integer gid) throws IOException, TemplateException {
|
|
|
Configuration cfg = new Configuration(Configuration.VERSION_2_3_0);
|
|
|
// 设置模板所在目录
|
|
|
cfg.setClassForTemplateLoading(TemplateGenerator.class, "/templates");
|
|
@@ -532,7 +535,7 @@ public class TemplateGenerator {
|
|
|
Template template = cfg.getTemplate("mashGasRunsh.ftl");
|
|
|
// 定义数据模型(Map)
|
|
|
Map<String, Object> dataModel = new HashMap<>();
|
|
|
- dataModel.put("bfname", bfname);
|
|
|
+ dataModel.put("casepath", BPATH + "/" + aid + "/" + jid + "/gas" + "/case");
|
|
|
dataModel.put("gascontrol", BPATH + "/" + aid + "/" + jid + "/gas" + "/" + gid + "/MashGas.control");
|
|
|
// 将数据模型传入模板进行处理
|
|
|
StringWriter writer = new StringWriter();
|