package com.ruoyi.business.entity; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 出库记录表 实体类 * * @author chenhj * @date 2025-06-14 */ @Data @TableName("output_inventory_record") public class OutputInventoryRecord implements Serializable { private static final long serialVersionUID = 1L; /** * 主键ID */ @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 库id */ @TableField(value = "inventory_id") private Long inventoryId; /** * 库类型 */ @TableField(value = "inventory_type") private String inventoryType; /** * 记录数量 */ @TableField(value = "quantity") private BigDecimal quantity; /** 逻辑删除字段 */ @TableLogic private Integer deleted; /** 创建者 */ @TableField(fill = FieldFill.INSERT) private String createBy; /** 创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER) private LocalDateTime createTime; }