Pre Merge pull request !1108 from 天地/fix-generator-bugs

pull/1108/MERGE
天地 2025-12-02 11:30:27 +00:00 committed by Gitee
commit 56bf5b9934
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
{
#foreach ($column in $columns)
#if($column.javaField == 'createTime')
${className}.setCreateBy(SecurityUtils.getUsername());
${className}.setCreateTime(DateUtils.getNowDate());
#end
#end
@ -95,6 +96,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
{
#foreach ($column in $columns)
#if($column.javaField == 'updateTime')
${className}.setUpdateBy(SecurityUtils.getUsername());
${className}.setUpdateTime(DateUtils.getNowDate());
#end
#end