创建时间仅在创建时填写
This commit is contained in:
@ -63,9 +63,9 @@ public class $!{tableInfo.name} extends Model<$!{tableInfo.name}> {
|
|||||||
#if("createTime" == $!{column.name})
|
#if("createTime" == $!{column.name})
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#end
|
#end
|
||||||
#if("updateTime" == $!{column.name})
|
#if("updateTime" == $!{column.name})
|
||||||
|
@ -92,9 +92,9 @@ public class Account extends Model<Account> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -77,9 +77,9 @@ public class Authority extends Model<Authority> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ public class Logger extends Model<Logger> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -67,9 +67,9 @@ public class Message extends Model<Message> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@ public class Page extends Model<Page> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ public class PageData extends Model<PageData> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@ public class Role extends Model<Role> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -52,9 +52,9 @@ public class RoleAuthority extends Model<RoleAuthority> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
@ -64,9 +64,9 @@ public class Tenant extends Model<Tenant> {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
{% if cookiecutter.platform == "postgis" -%}
|
{% if cookiecutter.platform == "postgis" -%}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.OTHER)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.OTHER)
|
||||||
{% else %}
|
{% else %}
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.DATETIMEOFFSET)
|
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.DATETIMEOFFSET)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
private OffsetDateTime createTime;
|
private OffsetDateTime createTime;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user