Browse Source

!143 serviceImpl模版 update方法判断bug修正
Merge pull request !143 from shenbururen/master

若依 5 years ago
parent
commit
da2d0ba32f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

+ 1 - 1
ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

@@ -81,7 +81,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
     public int update${ClassName}(${ClassName} ${className})
     {
 #foreach ($column in $columns)
-#if($column.javaField == 'createTime')
+#if($column.javaField == 'updateTime')
         ${className}.setUpdateTime(DateUtils.getNowDate());
 #end
 #end