update ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java.
此【!StringUtils.containsAny(template, "sql.vm", "api.js.vm", "index.vue.vm", "index-tree.vue.vm")】过滤条件是否冗余,还是有历史原因。 Signed-off-by: kknd97 <liujingwei@ln.chinamobile.com>pull/1091/head
parent
41496b6d8a
commit
54105184e3
|
|
@ -267,7 +267,8 @@ public class GenTableServiceImpl implements IGenTableService
|
|||
List<String> templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType());
|
||||
for (String template : templates)
|
||||
{
|
||||
if (!StringUtils.containsAny(template, "sql.vm", "api.js.vm", "index.vue.vm", "index-tree.vue.vm"))
|
||||
//此处的过滤判断导致【自定义路径】无法生成vue和sql的内容,建议删除。或者注释说明进行过滤的原因。
|
||||
if (true || !StringUtils.containsAny(template, "sql.vm", "api.js.vm", "index.vue.vm", "index-tree.vue.vm"))
|
||||
{
|
||||
// 渲染模板
|
||||
StringWriter sw = new StringWriter();
|
||||
|
|
|
|||
Loading…
Reference in New Issue