|
|
@ -809,21 +809,19 @@ public class SpringBootCallable implements Callable {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for (Module mo : project.getModules()) {
|
|
|
|
for (Module mo : project.getModules()) {
|
|
|
|
if (mo.isHasSysFields()) {//标准模型才好生成简单的htm
|
|
|
|
for (Table table : mo.getTables()) {
|
|
|
|
for (Table table : mo.getTables()) {
|
|
|
|
if (table.getHtml()) {
|
|
|
|
if (table.getHtml()) {
|
|
|
|
File module = Tool.createPath(screen.getAbsolutePath(), mo.getModuleName());
|
|
|
|
File module = Tool.createPath(screen.getAbsolutePath(), mo.getModuleName());
|
|
|
|
HashMap<String, Object> ctx = new HashMap<String, Object>();
|
|
|
|
HashMap<String, Object> ctx = new HashMap<String, Object>();
|
|
|
|
ctx.put("basePackage", project.getProjectBasePackage());
|
|
|
|
ctx.put("basePackage", project.getProjectBasePackage());
|
|
|
|
ctx.put("tool", Tool.class);
|
|
|
|
ctx.put("tool", Tool.class);
|
|
|
|
ctx.put("author", project.getProjectAuthor());
|
|
|
|
ctx.put("author", project.getProjectAuthor());
|
|
|
|
ctx.put("date", new Date());
|
|
|
|
ctx.put("date", new Date());
|
|
|
|
ctx.put("table", table);
|
|
|
|
ctx.put("table", table);
|
|
|
|
ctx.put("module", module.getName());
|
|
|
|
ctx.put("module", module.getName());
|
|
|
|
ctx.put("fields", table.getFields());
|
|
|
|
ctx.put("fields", table.getFields());
|
|
|
|
File file = Tool.createFile(module.getAbsolutePath(), table.getFName() + ".ftl");
|
|
|
|
File file = Tool.createFile(module.getAbsolutePath(), table.getFName() + ".ftl");
|
|
|
|
freeMarkerManager.outputTemp(file, "SpringBoot/resources/templates/screen/module/mgr.ftl", ctx);
|
|
|
|
freeMarkerManager.outputTemp(file, "SpringBoot/resources/templates/screen/module/mgr.ftl", ctx);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|