liyong
10 天以前 6b908076f80a2c2933058caf5311ae2dc9048409
src/main/java/com/ruoyi/basic/pojo/ProductModel.java
@@ -1,13 +1,17 @@
package com.ruoyi.basic.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@TableName("product_model")
public class ProductModel {
public class ProductModel implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -20,10 +24,55 @@
    /**
     * 关联产品id
     */
    @Excel(name = "关联产品id")
    private Long productId;
    @TableField(exist = false)
    @Excel(name = "产品名称")
    private String productName;
    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String model;
    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;
    /**
     * 生产炒机
     */
    @Excel(name = "生产炒机")
    private String speculativeTradingName;
    @Schema(description = "租户ID")
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
    @TableField(exist = false)
    @Excel(name = "入库数量")
    private BigDecimal inboundNum;
    @TableField(exist = false)
    @Excel(name = "出库数量")
    private BigDecimal outboundNum;
    @TableField(exist = false)
    @Excel(name = "剩余库存")
    private BigDecimal stockQuantity;
    @TableField(exist = false)
    private LocalDateTime createTime;
    @Schema(description = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Integer createUser;
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
    @Schema(description = "顶部父产品id")
    @TableField(exist = false)
    private Long topProductParentId;
}