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
kknd97 2025-09-19 08:11:23 +00:00 committed by Gitee
parent 41496b6d8a
commit 54105184e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -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();