| | |
| | | VelocityContext context = VelocityUtils.prepareContext(table);
|
| | |
|
| | | // 获取模板列表
|
| | | List<String> templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType());
|
| | | List<String> templates = VelocityUtils.getTemplateList(table);
|
| | | for (String template : templates)
|
| | | {
|
| | | // 渲染模板
|
| | |
| | | VelocityContext context = VelocityUtils.prepareContext(table);
|
| | |
|
| | | // 获取模板列表
|
| | | List<String> templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType());
|
| | | List<String> templates = VelocityUtils.getTemplateList(table);
|
| | | for (String template : templates)
|
| | | {
|
| | | if (!StringUtils.containsAny(template, "sql.vm", "api.js.vm", "index.vue.vm", "index-tree.vue.vm"))
|
| | | if (!StringUtils.containsAny(template, "sql.vm", "api.js.vm", "api.ts.vm", "type.ts.vm", "index.ts.vm", "index.vue.vm", "index-tree.vue.vm", "view.vue.vm"))
|
| | | {
|
| | | // 渲染模板
|
| | | StringWriter sw = new StringWriter();
|
| | |
| | | VelocityContext context = VelocityUtils.prepareContext(table);
|
| | |
|
| | | // 获取模板列表
|
| | | List<String> templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType());
|
| | | List<String> templates = VelocityUtils.getTemplateList(table);
|
| | | for (String template : templates)
|
| | | {
|
| | | // 渲染模板
|
| | |
| | | String treeName = paramsObj.getString(GenConstants.TREE_NAME);
|
| | | Long parentMenuId = paramsObj.getLongValue(GenConstants.PARENT_MENU_ID);
|
| | | String parentMenuName = paramsObj.getString(GenConstants.PARENT_MENU_NAME);
|
| | | boolean isView = paramsObj.getBooleanValue(GenConstants.GEN_VIEW);
|
| | |
|
| | | genTable.setTreeCode(treeCode);
|
| | | genTable.setTreeParentCode(treeParentCode);
|
| | | genTable.setTreeName(treeName);
|
| | | genTable.setParentMenuId(parentMenuId);
|
| | | genTable.setParentMenuName(parentMenuName);
|
| | | genTable.setView(isView);
|
| | | }
|
| | | }
|
| | |
|