创建时间仅在创建时填写
This commit is contained in:
@ -63,9 +63,9 @@ public class $!{tableInfo.name} extends Model<$!{tableInfo.name}> {
|
||||
#if("createTime" == $!{column.name})
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
{% if cookiecutter.platform == "postgis" -%}
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||
{% else %}
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||
{% endif %}
|
||||
#end
|
||||
#if("updateTime" == $!{column.name})
|
||||
|
Reference in New Issue
Block a user