|
@@ -51,7 +51,7 @@ public class TemplateGenerator {
|
|
|
XIFileUtils.mkdir(BPATH+"/"+aid+"/"+jid+"/water"+"/mid");
|
|
|
XIFileUtils.mkdir(BPATH+"/"+aid+"/"+jid+"/water"+"/out");
|
|
|
|
|
|
- FileWriter fileWriter =new FileWriter(BPATH+"/"+aid+"/"+"/water"+"/water.control");
|
|
|
+ FileWriter fileWriter =new FileWriter(BPATH+"/"+aid+"/"+jid+"/"+"/water"+"/water.control");
|
|
|
fileWriter.write(writer.toString());
|
|
|
fileWriter.close();
|
|
|
}
|
|
@@ -65,7 +65,7 @@ public class TemplateGenerator {
|
|
|
// 定义数据模型(Map)
|
|
|
Map<String, Object> dataModel = new HashMap<>();
|
|
|
//几何文件路径
|
|
|
- dataModel.put("waterControlPath", BPATH+"/"+aid+"/water"+"/water.control");
|
|
|
+ dataModel.put("waterControlPath", BPATH+"/"+aid+"/"+jid+"/water"+"/water.control");
|
|
|
// 将数据模型传入模板进行处理
|
|
|
StringWriter writer = new StringWriter();
|
|
|
template.process(dataModel, writer);
|
|
@@ -141,13 +141,13 @@ public class TemplateGenerator {
|
|
|
//几何文件路径
|
|
|
dataModel.put("geoFilePath", "/home/disaster/fire/Geometry");
|
|
|
//fireinit 文件路径
|
|
|
- dataModel.put("initFilePath", BPATH+"/"+aid+"/fire"+"/"+"Fire.init");
|
|
|
+ dataModel.put("initFilePath", BPATH+"/"+aid+"/"+jid+"/fire"+"/"+"Fire.init");
|
|
|
//fireInteractionPath 阀门文件路径
|
|
|
dataModel.put("fireInteractionPath", "/home/disaster/fire/Fire.interaction");
|
|
|
//midPath
|
|
|
- dataModel.put("midPath", BPATH+"/"+aid+"/fire"+"/mid");
|
|
|
+ dataModel.put("midPath", BPATH+"/"+aid+"/"+jid+"/fire"+"/mid");
|
|
|
//outPath
|
|
|
- dataModel.put("outPath", BPATH+"/"+aid+"/fire"+"/out");
|
|
|
+ dataModel.put("outPath", BPATH+"/"+aid+"/"+jid+"/fire"+"/out");
|
|
|
|
|
|
DSourceMapper dsm =UtilTools.getBean(DSourceMapper.class);
|
|
|
DSourceSQLBuilder dss= new DSourceSQLBuilder();
|