创建时间仅在创建时填写

This commit is contained in:
2025-06-05 15:42:41 +08:00
parent 377913b5d4
commit dabc0f860c
10 changed files with 20 additions and 20 deletions

View File

@ -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})