2.2K Star 16.1K Fork 9.7K

JEECG/JeecgBoot

 / 详情

代码生成 主子表vue3模板报错

已完成
创建于  
2022-07-21 10:55
版本号:3.3.0
问题描述:

代码生成 主子表vue3模板报错
2022-07-21 10:33:37.894 ERROR 16896 [141f6a169de97cf5] [http-nio-7001-exec-10] freemarker.runtime:60 Error executing FreeMarker template

freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> subMainFieldMap[sub.entityName] [in template "jvxe\onetomany\java\${bussiPackage}\${entityPackage}\vue3Native\components\${entityName}Form.vuei" at line 186, column 103]


Tip: It's the final [] step that caused this error, not those before it.

Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??


FTL stack trace ("~" means nesting-related):
- Failed at: ${subMainFieldMap[sub.entityName]} [in template "jvxe\onetomany\java\${bussiPackage}\${entityPackage}\vue3Native\components\${entityName}Form.vuei" at line 186, column 101]

at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:481)
at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:401)
at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:370)
at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:100)
at freemarker.core.DollarVariable.accept(DollarVariable.java:63)
at freemarker.core.Environment.visit(Environment.java:347)
at freemarker.core.Environment.visit(Environment.java:389)
截图&代码:

输入图片说明

输入图片说明

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;

评论 (2)

滑头一咸鱼 创建了任务

已修复,待新版本发布

JEECG 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
57093 jeecg 1662000782 13974 lc 1631154031
Java
1
https://gitee.com/jeecg/JeecgBoot.git
git@gitee.com:jeecg/JeecgBoot.git
jeecg
JeecgBoot
JeecgBoot

搜索帮助

A270a887 8829481 3d7a4017 8829481