package com.ruoyi.basic.pojo; import com.baomidou.mybatisplus.annotation.*; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; @Data @TableName("product") public class Product { private static final long serialVersionUID = 1L; /** * 序号 */ @TableId(type = IdType.AUTO) private Long id; /** * 父ID */ private Long parentId; /** * 产品名称 */ private String productName; @Schema(description = "租户ID") @TableField(fill = FieldFill.INSERT) private Long tenantId; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @TableField(exist = false) private Long[] deptIds; @TableField(fill = FieldFill.INSERT) private Long deptId; }