Appearance
作用:标记该字段为多租户ID
@Data @Table public class TenantEntity { @TableId private String id; @TenantId private Integer tenantId; @TableField(update = false) private LocalDateTime createTime; }
(前往查看多租户的配置)