通用优化

This commit is contained in:
zhujunjieit 2018-12-07 23:00:42 +08:00
parent 0e4943de0e
commit a0346043f6
1 changed files with 34 additions and 29 deletions

View File

@ -23,7 +23,12 @@ public class ${className}
#foreach ($column in $columns) #foreach ($column in $columns)
/** $column.columnComment */ /** $column.columnComment */
#if($column.columnName == $primaryKey.columnName)
@Id
private $column.attrType $column.attrname; private $column.attrType $column.attrname;
#else
private $column.attrType $column.attrname;
#end
#end #end
#foreach ($column in $columns) #foreach ($column in $columns)