fix:时间自动创建

This commit is contained in:
litianxiang
2026-04-29 14:19:10 +08:00
parent 9d4c675594
commit dea2409cea
3 changed files with 6 additions and 7 deletions

View File

@@ -52,13 +52,11 @@ public class ListingEntity implements Serializable {
private Integer status;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
/** 是否删除0-否1-是 */

View File

@@ -40,7 +40,7 @@ public class ListingImageEntity implements Serializable {
private Integer isSelected;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
}

View File

@@ -37,7 +37,8 @@ public class OrderInfoEntity implements Serializable {
/** 总浏览量 */
private Long totalViews;
/** 下单时间 */
/** 创建时间 */
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
/** 更新时间 */