package com.bbxyard.mp.auto_fill_meta.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("mp_afm_user")
public class User {

    @TableId
    private Long id;

    @TableField("name")
    private String name;        // 值 映射

    private Integer age;

    private String email;

    @TableLogic
    private Integer deleted;    // 逻辑删除

    @Version
    private Integer version;    // 乐观锁 -> 版本

    private String operator;    // 操作员
}

@@ -429,16 +429,64 @@
  -%3E %E7%89%88%E6%9C%AC%0A%0A
+    @TableField(fill = FieldFill.INSERT_UPDATE)%0A
     priv

Update User.java