Commit 0b34c3e9 by shenbururen Committed by Gitee

serviceImpl模版 update方法判断bug修正

应该判断updateTime字段。
parent 1557a858
...@@ -81,7 +81,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service ...@@ -81,7 +81,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
public int update${ClassName}(${ClassName} ${className}) public int update${ClassName}(${ClassName} ${className})
{ {
#foreach ($column in $columns) #foreach ($column in $columns)
#if($column.javaField == 'createTime') #if($column.javaField == 'updateTime')
${className}.setUpdateTime(DateUtils.getNowDate()); ${className}.setUpdateTime(DateUtils.getNowDate());
#end #end
#end #end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment