File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
generator-web/src/main/resources/templates/code-generator/mybatis Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Thanks for `JetBrains` providing us the `Licenses for Open Source Development`
60
60
# Update Logs
61
61
| 更新日期| 更新内容|
62
62
| :----| :----|
63
+ | 2021.03.24| 修复Mybatis.XML中缺失test=关键字问题。(感谢@BWHN/YUEHUI 的反馈)。|
63
64
| 2021.01.18| OEM信息优化,支持多配置文件模式,支持在application* .yml自定义信息,以及切换local/cdn模式。|
64
65
| 2021.01.17| 生成后自动trim掉前后空格输出。<br >完善ReadMe文档。<br >优化云CDN引入部分。<br >优化returnUtil部分。<br >表明前缀选项(感谢@wwlg 的建议)。 <br >是否带字段注释设置(感谢@fengpojian 的建议)。<br >优化Mybatis的''!=判断(感谢@zhongsb 的建议)。<br >Mybatis-Plus增加Service层(感谢@yf466532479 的建议)。 |
65
66
| 2021.01.16| 全新3.0版本:<br >一、前端半vue半js化,更多动态加载项。<br >二、支持更多生成设置,优化生成场景。<br >三、js导入支持本地/CDN模式,支持断网环境轻松使用。|
Original file line number Diff line number Diff line change 25
25
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0 >
26
26
<#list classInfo.fieldList as fieldItem >
27
27
<#if fieldItem.columnName != "id" >
28
- <if " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >
28
+ <if test = " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >
29
29
${fieldItem.columnName} <#if fieldItem_has_next >,</#if >
30
30
${r"</if >"}
31
31
</#if >
41
41
NOW()<#if fieldItem_has_next>,</#if>
42
42
${r"</if>"}
43
43
<#else>-->
44
- <if " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >
44
+ <if test = " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >
45
45
${r"#{"}${fieldItem.fieldName} ${r"}"}<#if fieldItem_has_next >,</#if >
46
46
${r"</if >"}
47
47
<#-- </#if>-->
61
61
<set >
62
62
<#list classInfo.fieldList as fieldItem >
63
63
<#if fieldItem.columnName != "id" && fieldItem.columnName != "AddTime" && fieldItem.columnName != "UpdateTime" >
64
- <if " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >${fieldItem.columnName} = ${r"#{"}${fieldItem.fieldName} ${r"}"}<#if fieldItem_has_next >,</#if >${r"</if >"}
64
+ <if test = " null != ${fieldItem.fieldName} and '' != ${fieldItem.fieldName}" >${fieldItem.columnName} = ${r"#{"}${fieldItem.fieldName} ${r"}"}<#if fieldItem_has_next >,</#if >${r"</if >"}
65
65
</#if >
66
66
</#list >
67
67
</set >
You can’t perform that action at this time.
0 commit comments